Fix window dragging behavior in eye gaze mode

main
Isaiah Odhner 2020-04-28 20:24:52 -04:00
parent d70c2edfc7
commit 20e6191eb2
1 changed files with 2 additions and 2 deletions

View File

@ -898,7 +898,7 @@ function init_eye_gaze_mode() {
.main-canvas,
.selection canvas,
.handle,
.window-titlebar,
.window:not(.maximized) .window-titlebar,
.history-entry,
.canvas-area
`;
@ -942,7 +942,7 @@ function init_eye_gaze_mode() {
} else {
return null;
}
}else if(!target.matches(".main-canvas, .selection canvas")){
}else if(!target.matches(".main-canvas, .selection canvas, .window-titlebar")){
// Nudge hover previews to the center of buttons and things
const rect = target.getBoundingClientRect();
hover_candidate.x = rect.left + rect.width / 2;