We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repo主做这个插件辛苦了,插件也很棒,已star。
下面想提几个改进建议,是我在使用过程中遇到的问题,反馈给您。
1、希望加个选项,可以选择插件滑动的方向。 我用的时候发现插件的滑动方向和我平常习惯的方向相反,在查看了代码后,我自己改成: x: -getXY(e, 'x'), y: -getXY(e, 'y') 但是这样不够方便,还是希望能够通过选项控制,比如:
x: -getXY(e, 'x'), y: -getXY(e, 'y')
$('.container').mtfpicviewer({ reverseDragDirection: true, });
The text was updated successfully, but these errors were encountered:
2、希望能增加个选项,点击图片时只显示单张图片。
现在按照默认的设置,点击图片后显示的是所有图片,但业务需求只需要点哪张显示哪张,这个能否做个选项控制一下。
Sorry, something went wrong.
3、滑动动画略卡,研究后发现是节流函数间隔设置得太长导致。我改成16,感觉好蛮多:
$picViewer.on('mousemove touchmove', throttle(function(e) { movedDistance = onMovingPicViewer(e, start); }, 16));
您的建议已更新,请下载1.0.1版,然后如下设置即可:
controls: { reverseDrag: {x: true, y: true}, canChange: false }
controls
reverseDrag
x
y
canChange
非常感谢
mantoufan
No branches or pull requests
repo主做这个插件辛苦了,插件也很棒,已star。
下面想提几个改进建议,是我在使用过程中遇到的问题,反馈给您。
1、希望加个选项,可以选择插件滑动的方向。
我用的时候发现插件的滑动方向和我平常习惯的方向相反,在查看了代码后,我自己改成:
x: -getXY(e, 'x'), y: -getXY(e, 'y')
但是这样不够方便,还是希望能够通过选项控制,比如:
The text was updated successfully, but these errors were encountered: