javascript - Jquery UI Draggable Containment -


i have image can drag around container using jquery ui.

i using draggable("option", "containment", [x1, y1, x2, y2]) set draggable containment works perfectly.

i have written zoom slider zooms image, recalculates containment works well.

however when zoom out image, may sit outside of newly calculated containment area, position doesn't updated until start drag again on element, snaps within containment area , can continue drag it.

i want element's position update zoom in out if falls outside of containment area. looking simulating drag event after zooming couldn't work properly.

is there way of refreshing position of element using jquery ui draggable plugin?

thanks


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -