UNPKG

react-native-gesture-handler

Version:

Experimental implementation of a new declarative API for gesture handling in react-native

8 lines 217 B
export function isPointerInBounds(view, { x, y }) { const rect = view.getBoundingClientRect(); return x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom; } //# sourceMappingURL=utils.js.map