提交 4f358aeb 编写于 作者: S Scott DeSapio

Added fallbackOffset = options.fallbackOffset, and this.options.fallbackOffset -> fallbackOffset

上级 dcb3bae4
......@@ -513,9 +513,10 @@
if (tapEvt) {
var options = this.options,
fallbackTolerance = options.fallbackTolerance,
fallbackOffset = options.fallbackOffset,
touch = evt.touches ? evt.touches[0] : evt,
dx = (touch.clientX - tapEvt.clientX) + this.options.fallbackOffset.x,
dy = (touch.clientY - tapEvt.clientY) + this.options.fallbackOffset.y,
dx = (touch.clientX - tapEvt.clientX) + fallbackOffset.x,
dy = (touch.clientY - tapEvt.clientY) + fallbackOffset.y,
translate3d = evt.touches ? 'translate3d(' + dx + 'px,' + dy + 'px,0)' : 'translate(' + dx + 'px,' + dy + 'px)';
// only set the status to dragging, when we are actually dragging
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册