From b2eda881e88c554bd5a5df6ddfa747fb817b06cb Mon Sep 17 00:00:00 2001 From: Jirka Date: Sat, 16 Apr 2022 16:53:30 +0200 Subject: [PATCH] Another problem with release handler: a point instace could be undefined. --- src/mousetracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mousetracker.js b/src/mousetracker.js index cf796b6a..ce833e12 100644 --- a/src/mousetracker.js +++ b/src/mousetracker.js @@ -3561,7 +3561,7 @@ eventInfo.shouldReleaseCapture = false; // Release (pressed in another element) - if ( tracker.releaseHandler ) { + if ( tracker.releaseHandler && releasePoint ) { tracker.releaseHandler( { eventSource: tracker,