Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kivy_garden/mapview/mbtsource.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def __init__(self, filename, **kwargs):
cx = cy = 0.0
cz = 5
if "bounds" in metadata:
self.bounds = bounds = map(float, metadata["bounds"].split(","))
self.bounds = bounds = list(map(float, metadata["bounds"].split(",")))
if "center" in metadata:
cx, cy, cz = map(float, metadata["center"].split(","))
cx, cy, cz = list(map(float, metadata["center"].split(",")))
elif self.bounds:
cx = (bounds[2] + bounds[0]) / 2.0
cy = (bounds[3] + bounds[1]) / 2.0
Expand Down
4 changes: 2 additions & 2 deletions kivy_garden/mapview/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,12 +642,12 @@ def scale_at(self, scale, x, y):
)

def on_touch_down(self, touch):
if not self.collide_point(*touch.pos):
if not self.collide_point(*touch.pos) or self.disabled:
return
if self.pause_on_action:
self._pause = True
if "button" in touch.profile and touch.button in ("scrolldown", "scrollup"):
d = 1 if touch.button == "scrollup" else -1
d = 1 if touch.button == "scrolldown" else -1
self.animated_diff_scale_at(d, *touch.pos)
return True
elif touch.is_double_tap and self.double_tap_zoom:
Expand Down