Skip to content

Commit

Permalink
panel 代码笔误 #34
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickey- committed Nov 9, 2015
1 parent ce1d85c commit 3a307f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions docs/demos.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,6 @@ <h1 class="title">关于SUI Mobile</h1>
<p>我们的目的是为手机千牛、百川以及任何手机端的H5页面提供标准的设计规范和前端实现。</p>
<p>SUI Mobile并没有重新发明轮子,我们主要参考了 <a href='http://goratchet.com' external target='_blank'>ratchet</a><a href='http://framework7.taobao.org/' external target='_blank'>Framework7</a></p>
<p>这里只是一个官方示例,详细文档请参考:<a href='http://m.sui.taobao.org/' external target='_blank'>http://m.sui.taobao.org/</a></p>
<p>官方旺旺群:1278550944</p>
<p>或者旺旺联系 @任行</p>
<p></p>
<p><a class="button close-popup">确定</a></p>
</div>
Expand Down
10 changes: 5 additions & 5 deletions js/panels.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -122,7 +122,7 @@
isMoved = false;
isTouched = true;
isScrolling = undefined;

touchStartTime = (new Date()).getTime();
direction = undefined;
}
Expand Down Expand Up @@ -201,7 +201,7 @@
e.preventDefault();
var threshold = opened ? 0 : -swipePanelThreshold;
if (side === 'right') threshold = -threshold;

touchesDiff = pageX - touchesStart.x + threshold;

if (side === 'right') {
Expand Down

0 comments on commit 3a307f1

Please sign in to comment.