basic ruler zoom/scroll gesture logic