From 3a307f1bc286d984aab616d7126337239b8aa3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8A=E8=BE=B9?= Date: Mon, 9 Nov 2015 20:57:59 +0800 Subject: [PATCH] =?UTF-8?q?panel=20=E4=BB=A3=E7=A0=81=E7=AC=94=E8=AF=AF=20?= =?UTF-8?q?#34?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/demos.html | 2 -- js/panels.js | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/demos.html b/docs/demos.html index 338b0a7b..d33745fb 100644 --- a/docs/demos.html +++ b/docs/demos.html @@ -193,8 +193,6 @@

关于SUI Mobile

我们的目的是为手机千牛、百川以及任何手机端的H5页面提供标准的设计规范和前端实现。

SUI Mobile并没有重新发明轮子,我们主要参考了 ratchetFramework7

这里只是一个官方示例,详细文档请参考:http://m.sui.taobao.org/

-

官方旺旺群:1278550944

-

或者旺旺联系 @任行

确定

diff --git a/js/panels.js b/js/panels.js index 8930932b..04d84515 100644 --- a/js/panels.js +++ b/js/panels.js @@ -20,11 +20,11 @@ // Trigger reLayout var clientLeft = panel[0].clientLeft; - + // Transition End; var transitionEndTarget = effect === 'reveal' ? $($.getCurrentPage()) : panel; var openedTriggered = false; - + function panelTransitionEnd() { transitionEndTarget.transitionEnd(function (e) { if (e.target === transitionEndTarget[0]) { @@ -66,7 +66,7 @@ }; $(document).on("click", ".open-panel", function(e) { - var panel = $(e.target).data(panel); + var panel = $(e.target).data('panel'); $.openPanel(panel); }); $(document).on("click", ".close-panel, .panel-overlay", function(e) { @@ -122,7 +122,7 @@ isMoved = false; isTouched = true; isScrolling = undefined; - + touchStartTime = (new Date()).getTime(); direction = undefined; } @@ -201,7 +201,7 @@ e.preventDefault(); var threshold = opened ? 0 : -swipePanelThreshold; if (side === 'right') threshold = -threshold; - + touchesDiff = pageX - touchesStart.x + threshold; if (side === 'right') {