Closed strarsis closed 1 year ago
Good suggestion! However, I'm a stickler for serial commas, and your commit didn't include one. As it was a one-line change, it was easier for me to just make a new commit in 54b7b22d03d74eec16147027f0d55ca623153021 than accept the pull request and then add the comma.
The documentation states that the hotspot
click
event is handled by the function set inclickHandlerFunc
field. However, not only the hotspotclick
event, but also thepointerup
andtouchend
events will cause theclickHandlerFunc
to be called - which makes sense as just theclick
event only works with a mouse input, not with touch (as being usually the sole input method on current mobile devices).Maybe this should rather be named "hotspot selection" instead of "hotspot click", encompassing all events/interactions that indicate the intend to select that hotspot? But renaming this field would introduce a breaking change, so instead just name it like this in the documentation?