Skip to content

Commit 5b65e5f

Browse files
committed
fix: remove override pointer events to fix #2395
1 parent d78e90e commit 5b65e5f

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

android/src/main/java/com/horcrux/svg/RenderableView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public Rect getHitSlopRect() {
105105
* In order to make the isTouchPointInView fail we need to return a very improbable Rect for the View
106106
* This way an SVG with box_none carrying its last descendent with box_none will have the expected behavior of just having events on the actual painted area
107107
*/
108-
if (mPointerEvents == PointerEvents.BOX_NONE) {
108+
if (this.getPointerEvents() == PointerEvents.BOX_NONE) {
109109
return new Rect(Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE);
110110
}
111111
return null;
@@ -630,7 +630,7 @@ int hitTest(final float[] src) {
630630
return -1;
631631
}
632632

633-
if (mPointerEvents == PointerEvents.NONE) {
633+
if (this.getPointerEvents() == PointerEvents.NONE) {
634634
return -1;
635635
}
636636

android/src/main/java/com/horcrux/svg/VirtualView.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ public abstract class VirtualView extends ReactViewGroup {
102102
Region mStrokeRegion;
103103
Region mClipRegion;
104104
ArrayList<PathElement> elements;
105-
PointerEvents mPointerEvents;
106-
107-
void setPointerEvents(PointerEvents pointerEvents) {
108-
mPointerEvents = pointerEvents;
109-
}
110105

111106
@Override
112107
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {

0 commit comments

Comments
 (0)