comparison cagou/core/cagou_main.py @ 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 4772ba26623f
children 04e4cd7c9351
comparison
equal deleted inserted replaced
289:717c6c368f70 290:a7b80552ca8d
98 ## General Configuration ## 98 ## General Configuration ##
99 99
100 # we want white background by default 100 # we want white background by default
101 Window.clearcolor = (1, 1, 1, 1) 101 Window.clearcolor = (1, 1, 1, 1)
102 # we don't want multi-touch emulation with mouse 102 # we don't want multi-touch emulation with mouse
103 KivyConfig.set('input', 'mouse', 'mouse,disable_multitouch') 103 if sys.platform != 'android':
104 # FIXME: there is currently a bug in Kivy when this option is enabled
105 # cf. https://github.com/kivy/kivy/issues/6229
106 KivyConfig.set('input', 'mouse', 'mouse,disable_multitouch')
104 107
105 108
106 class NotifsIcon(IconButton): 109 class NotifsIcon(IconButton):
107 notifs = properties.ListProperty() 110 notifs = properties.ListProperty()
108 111