diff --git a/RNSVG.podspec b/RNSVG.podspec index 4a620a52..1446a83a 100644 --- a/RNSVG.podspec +++ b/RNSVG.podspec @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/magicismight/react-native-svg.git', :tag => "v#{s.version}" } s.source_files = 'ios/**/*.{h,m}' s.requires_arc = true - s.platform = :ios, "7.0" + s.platforms = { :ios => "8.0", :tvos => "9.2" } s.dependency 'React' end diff --git a/android/src/main/java/com/horcrux/svg/SvgView.java b/android/src/main/java/com/horcrux/svg/SvgView.java index ab5e700f..4ba7b99d 100644 --- a/android/src/main/java/com/horcrux/svg/SvgView.java +++ b/android/src/main/java/com/horcrux/svg/SvgView.java @@ -152,6 +152,7 @@ public class SvgView extends View { // this gesture. dispatch(ev, TouchEventType.END); mTargetTag = -1; + mGestureStartTime = TouchEvent.UNSET; } else if (action == MotionEvent.ACTION_MOVE) { // Update pointer position for current gesture dispatch(ev, TouchEventType.MOVE); @@ -161,8 +162,6 @@ public class SvgView extends View { } else if (action == MotionEvent.ACTION_POINTER_UP) { // Exactly onw of the pointers goes up dispatch(ev, TouchEventType.END); - mTargetTag = -1; - mGestureStartTime = TouchEvent.UNSET; } else if (action == MotionEvent.ACTION_CANCEL) { dispatchCancelEvent(ev); mTargetTag = -1;