Comparing version 2.0.1 to 2.0.2
@@ -28,3 +28,4 @@ # Demo | ||
<div style="border : 1px solid #ededed;" id="c1"> | ||
<h3 class="am-pop-scroll" style="width: 200px; height: 200px; overflow: scroll;"> | ||
<h3 class="am-pop-scroll" style="width: 500px; height: 200px; overflow: scroll;"> | ||
<div class="test"> | ||
<p>test</p> | ||
@@ -46,2 +47,3 @@ <p>test</p> | ||
<p>test</p> | ||
</div> | ||
</h3> | ||
@@ -48,0 +50,0 @@ </div> |
@@ -5,2 +5,6 @@ # History | ||
## 2.0.2 | ||
`bugfix` 修复滚动区域识别的问题 | ||
## 2.0.1 | ||
@@ -7,0 +11,0 @@ |
{ | ||
"name": "anima-pop", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "The best project ever.", | ||
@@ -5,0 +5,0 @@ "homepage": "http://gitlab.alibaba-inc.com/animajs/pop", |
@@ -78,5 +78,9 @@ /** | ||
this.element.on('touchmove', function (e) { | ||
if(e.target.className !== 'am-pop-scroll'){ | ||
var el = $(e.target); | ||
if(!(el.hasClass('am-pop-scroll') || el.closest('.am-pop-scroll').length)){ | ||
e.preventDefault(); | ||
} | ||
}); | ||
@@ -83,0 +87,0 @@ |
30833
960