Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Fjen Undso
nchl
Commits
73522293
Commit
73522293
authored
Aug 27, 2019
by
Fjen Undso
Browse files
fix mouse drag on touchscreens
parent
f290a135
Changes
1
Hide whitespace changes
Inline
Side-by-side
nchl.py
View file @
73522293
...
...
@@ -160,9 +160,14 @@ class NCHL:
# mouse
if
k
==
"KEY_MOUSE"
:
_
,
mx
,
my
,
_
,
_
=
curses
.
getmouse
()
self
.
logger
.
info
(
f
"mouse:
{
mx
}
{
my
}
"
)
self
.
fs_main
.
send_mouse
(
mx
,
my
)
try
:
_
,
mx
,
my
,
_
,
_
=
curses
.
getmouse
()
except
curses
.
error
:
pass
else
:
self
.
logger
.
info
(
f
"mouse:
{
mx
}
{
my
}
"
)
self
.
fs_main
.
send_mouse
(
mx
,
my
)
continue
# send key to main window
self
.
fs_main
.
send_key
(
k
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment