mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
add exit from routeOnClick() if we got LMB event and some text is selected
This commit is contained in:
parent
50a3ef3272
commit
b83616b5cc
@ -1041,6 +1041,9 @@ function routeOnClick(event) {
|
|||||||
if (!event || !event.data || !event.data.route)
|
if (!event || !event.data || !event.data.route)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (event.button === 0 && window.getSelection().toString() !== '')
|
||||||
|
return;
|
||||||
|
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user