Initial implementation of half cell based selection

This commit is contained in:
Kovid Goyal
2020-02-23 09:24:20 +05:30
parent 4512d0dbac
commit 6b1ea326a0
6 changed files with 224 additions and 146 deletions

View File

@@ -17,12 +17,14 @@ def send_mouse_event(
button=-1,
modifiers=0,
is_release=False,
x=0,
x=0.0,
y=0,
clear_click_queue=False
clear_click_queue=False,
):
ix = int(x)
in_left_half_of_cell = ix - int(x) > 0.5
send_mock_mouse_event_to_window(
window, button, modifiers, is_release, x, y, clear_click_queue
window, button, modifiers, is_release, ix, y, clear_click_queue, in_left_half_of_cell
)