Recently I’m working on a project which need an “image drag” effect.
The effect is: there is an full-screen image on the page, I want it can move from right to left and left to right along with dragging. But not from the top to the bottom（that means the image can’t move vertically）.
I read the article from the forums：[Drag element limited by ‘container’ without additional js-library]
Thanks for the contributory very much. I’ve tried it, it effective for the small element. But when I change the small element for a full-screen image, it doesn’t work. Here’s the source file:drag(test)-hype.zip (264.3 KB)
Anyone have some ideas? I know there is something wrong with my source file.
Thanks very much!!
: Drag element limited by 'container' without additional js-library