Merge pull request #2720 from kived/inspector-touchdevices

fix inspector for touch devices
This commit is contained in:
Akshay Arora 2014-12-03 04:49:10 +05:30
commit 087673e9df
1 changed files with 2 additions and 1 deletions

View File

@ -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