Merge branch 'master' of https://github.com/FooSoft/yomichan-chrome
This commit is contained in:
commit
826bf96311
@ -35,6 +35,7 @@ function getRangeAtCursor(e, lookAhead) {
|
|||||||
return range;
|
return range;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function onMouseDown(e) {
|
function onMouseDown(e) {
|
||||||
const range = getRangeAtCursor(e, 20);
|
const range = getRangeAtCursor(e, 20);
|
||||||
if (range === null) {
|
if (range === null) {
|
||||||
@ -51,4 +52,4 @@ function onMouseDown(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
window.addEventListener('mousedown', onMouseDown, false);
|
window.addEventListener('mousemove', onMouseMove, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user