add exit from routeOnClick() if we got LMB event and some text is selected

This commit is contained in:
Simon Grim 2016-07-31 03:12:16 +05:00
parent 50a3ef3272
commit b83616b5cc

View File

@ -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();