I'm trying to make available zooming on scroll. I have one #mainDiv
with multiple .foo
tables inside with jsPlumb endpoints. When the user scrolls, #mainDiv
should remain the same size and tables should resize, which actually happens, but table's endpoints don't change their size and place. take a look at this jsFiddle:
https://jsfiddle.net/vaxobasilidze/cg3hkde7/9/
Fiddle is pretty big, but we only need the first javascript function. Drag few items to the right side, add new link and scroll. tables will change size, but endpoints remain the same. How can I fix this problem with endpoints?
Endpoints are not part of these tables, but they are part of jsPlumb library, which has setZoom() function for it's objects. This function does not work and I would like to know why. Connectors should also change their place.
Also, app must be working on touch devices as well. Does setZoom work on pinch zoom for touch devices and how can I implement this?