From 94b264984ee43a09db25ffcf47f512af42393e70 Mon Sep 17 00:00:00 2001 From: W3D Date: Sat, 4 Apr 2026 23:06:55 +0200 Subject: [PATCH] [General] [Fixed] - Fix hover out timeout stored in wrong variable in Pressability The onMouseLeave handler incorrectly assigned the delayed onHoverOut timeout to _hoverInDelayTimeout instead of _hoverOutDelayTimeout. This caused _cancelHoverOutDelayTimeout() to not cancel the pending onHoverOut callback, and _cancelHoverInDelayTimeout() to incorrectly cancel it instead. --- packages/react-native/Libraries/Pressability/Pressability.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/Pressability/Pressability.js b/packages/react-native/Libraries/Pressability/Pressability.js index 8e04ee5cffa..0be465bec54 100644 --- a/packages/react-native/Libraries/Pressability/Pressability.js +++ b/packages/react-native/Libraries/Pressability/Pressability.js @@ -642,7 +642,7 @@ export default class Pressability { ); if (delayHoverOut > 0) { event.persist(); - this._hoverInDelayTimeout = setTimeout(() => { + this._hoverOutDelayTimeout = setTimeout(() => { onHoverOut(event); }, delayHoverOut); } else {