使用jQuery动态在Mousedrag上滑动图像 [英] Image Swiping on Mousedrag using jquery dynamically
本文介绍了使用jQuery动态在Mousedrag上滑动图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要图像交换应用程序,其中必须从选定的源或驱动器等动态加载图像.加载图像后,所有这些都应显示在任何容器划过的位置,然后,如果用户选择了特定的图像,应将其缩小,然后在鼠标拖动上有一个"Swiping" 可用性.就像移动应用程序一样.但对于移动应用程序却不是,对于触摸Web应用程序呢?
我是静态完成的,但是我希望它能动态完成,我被困在这
解决方案
(" ).touchwipe({ 擦拭Left:功能(){警报(" ); }, 擦拭权:function(){alert(" ); }, 擦拭:function(){alert(" ); }, 擦拭下:function(){alert(" ); }, min_move_x: 20 , min_move_y: 20 , preventDefaultEvents: true });
I want image Swiping Application,in which images must be loaded Dynamically from a selected source or drive etc.After Loading images ,all of them should be shown i any container swiping must be there,then if the user selects the particular image ,it should be zoomed out and there we have an availibility "Swiping " on Mouse Dragging. Just like mobile applications.but not for mobile apps, for touch web application?
i have done it statically ,but i want it dynamically to be done, i''m stuck with it
解决方案
("#imagegallery").touchwipe({ wipeLeft: function() { alert("left"); }, wipeRight: function() { alert("right"); }, wipeUp: function() { alert("up"); }, wipeDown: function() { alert("down"); }, min_move_x: 20, min_move_y: 20, preventDefaultEvents: true });
这篇关于使用jQuery动态在Mousedrag上滑动图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文