Skip to content
Advertisement

Tag: pan

Move (drag/pan) and zoom object (image or div) in pure js

I’m working on a little script that makes an object (div or img) moveable and zoomable within a given frame. However I came across a few problems I’m not really sure of, because I’m a javascript beginner – so explanation of why those problems occure would be appreciated. Problems: Calling the functions start_drag(), while_drag() and stop_drag() returns undefined – why

raphael js Pan functionality using raphael-pan-zoom

I found a plugin called raphael-pan-zoom that I use to zoom-in and zoom-out my raphaeljs elements in my paper, the zoom worked perfectly, but when I wanted to move the paper to the left, right, top or down I didn’t success. I found in the “raphael.pan-zoom.js” the pan function : I don’t know what is deltaX and deltaY and how

Advertisement