mirror of https://github.com/kivy/kivy.git
Merge pull request #2720 from kived/inspector-touchdevices
fix inspector for touch devices
This commit is contained in:
commit
087673e9df
|
@ -230,7 +230,8 @@ class Inspector(FloatLayout):
|
|||
|
||||
def on_touch_down(self, touch):
|
||||
ret = super(Inspector, self).on_touch_down(touch)
|
||||
if touch.button == 'left' and not ret and self.inspect_enabled:
|
||||
if (('button' not in touch.profile or touch.button == 'left')
|
||||
and not ret and self.inspect_enabled):
|
||||
self.highlight_at(*touch.pos)
|
||||
if touch.is_double_tap:
|
||||
self.inspect_enabled = False
|
||||
|
|
Loading…
Reference in New Issue