Skip to content

Commit

Permalink
fix: remove override pointer events to fix #2395
Browse files Browse the repository at this point in the history
  • Loading branch information
jakex7 committed Aug 5, 2024
1 parent d78e90e commit 5b65e5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/com/horcrux/svg/RenderableView.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public Rect getHitSlopRect() {
* In order to make the isTouchPointInView fail we need to return a very improbable Rect for the View
* 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
*/
if (mPointerEvents == PointerEvents.BOX_NONE) {
if (this.getPointerEvents() == PointerEvents.BOX_NONE) {
return new Rect(Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE);
}
return null;
Expand Down Expand Up @@ -630,7 +630,7 @@ int hitTest(final float[] src) {
return -1;
}

if (mPointerEvents == PointerEvents.NONE) {
if (this.getPointerEvents() == PointerEvents.NONE) {
return -1;
}

Expand Down
5 changes: 0 additions & 5 deletions android/src/main/java/com/horcrux/svg/VirtualView.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ public abstract class VirtualView extends ReactViewGroup {
Region mStrokeRegion;
Region mClipRegion;
ArrayList<PathElement> elements;
PointerEvents mPointerEvents;

void setPointerEvents(PointerEvents pointerEvents) {
mPointerEvents = pointerEvents;
}

@Override
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
Expand Down

0 comments on commit 5b65e5f

Please sign in to comment.