Mercurial > libervia-desktop-kivy
changeset 290:a7b80552ca8d
core: don't change mouse setting on Android, this is causing a touch bug:
when changing setting to avoid multitouch emulation with mouse, Kivy is doing several touch event on Android.
cf. https://github.com/kivy/kivy/issues/6229
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 07 Apr 2019 21:09:27 +0200 |
parents | 717c6c368f70 |
children | 04e4cd7c9351 |
files | cagou/core/cagou_main.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cagou/core/cagou_main.py Thu Mar 28 08:44:03 2019 +0100 +++ b/cagou/core/cagou_main.py Sun Apr 07 21:09:27 2019 +0200 @@ -100,7 +100,10 @@ # we want white background by default Window.clearcolor = (1, 1, 1, 1) # we don't want multi-touch emulation with mouse -KivyConfig.set('input', 'mouse', 'mouse,disable_multitouch') +if sys.platform != 'android': + # FIXME: there is currently a bug in Kivy when this option is enabled + # cf. https://github.com/kivy/kivy/issues/6229 + KivyConfig.set('input', 'mouse', 'mouse,disable_multitouch') class NotifsIcon(IconButton):