Resolve issue with click event handling

This commit is contained in:
Aljaž Grilc 2024-03-19 14:49:19 +01:00
parent 385e38c06d
commit a48597b979

View File

@ -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. * @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) { static handleClick(event) {
const source = event?.detail || event const source = event?.detail !== 1 ? event?.detail : event
const hostElement = BesService.findParent( const hostElement = BesService.findParent(
source.targetElement || source.target source.targetElement || source.target
) )