react-native-gizwits-scroll-ruler 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -365,6 +365,9 @@ public class RNScrollRuler extends View {
|
|
|
365
365
|
velocityTracker.addMovement(event);
|
|
366
366
|
switch (event.getAction()) {
|
|
367
367
|
case MotionEvent.ACTION_DOWN:
|
|
368
|
+
if (getParent() != null) {
|
|
369
|
+
getParent().requestDisallowInterceptTouchEvent(true);
|
|
370
|
+
}
|
|
368
371
|
//按下时如果属性动画还没执行完,就终止,记录下当前按下点的位置
|
|
369
372
|
if (valueAnimator != null && valueAnimator.isRunning()) {
|
|
370
373
|
valueAnimator.end();
|
package/index.android.js
CHANGED
|
@@ -39,7 +39,7 @@ RCT_EXPORT_VIEW_PROPERTY(unit, NSString);
|
|
|
39
39
|
|
|
40
40
|
RCT_EXPORT_VIEW_PROPERTY(tintColor, NSString);
|
|
41
41
|
|
|
42
|
-
RCT_EXPORT_VIEW_PROPERTY(onSelect,
|
|
42
|
+
RCT_EXPORT_VIEW_PROPERTY(onSelect, RCTDirectEventBlock)
|
|
43
43
|
|
|
44
44
|
RCT_EXPORT_VIEW_PROPERTY(disabled, BOOL);
|
|
45
45
|
|
package/package.json
CHANGED