From a48597b979af24a47677f2a383ade07069b0c14e Mon Sep 17 00:00:00 2001 From: Aljaz Grilc Date: Tue, 19 Mar 2024 14:49:19 +0100 Subject: [PATCH] Resolve issue with click event handling --- service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.js b/service.js index 2c65595..89185ae 100644 --- a/service.js +++ b/service.js @@ -473,7 +473,7 @@ class BesService { * @param {PointerEvent} event The event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */ static handleClick(event) { - const source = event?.detail || event + const source = event?.detail !== 1 ? event?.detail : event const hostElement = BesService.findParent( source.targetElement || source.target )