Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

Commit 9f1374c

Browse files
committed
use cgb_
1 parent c22c131 commit 9f1374c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package_dir =
1919
packages = find:
2020
python_requires = >=3.6
2121
install_requires =
22-
gestures4kivy >= 0.0.7
22+
gestures4kivy >= 0.1.0
2323

2424
[options.packages.find]
2525
where = src

Diff for: src/camera4kivy/preview_camerax.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ def set_facing(self, facing):
179179

180180
# CommonGestures Touch Events
181181
# tap for focus
182-
def cg_tap(self, touch, x, y):
182+
def cgb_primary(self, touch, x, y):
183183
if self._camera and self.enable_focus_gesture:
184184
self.focus(x, y)
185185

186186
# pinch/spread for zoom
187-
def cg_scale(self, touch0, touch1, scale, x, y):
187+
def cgb_zoom(self, touch0, touch1, x, y, scale):
188188
if self._camera and self.enable_zoom_gesture:
189189
self.zoom_delta(scale)
190190

Diff for: src/camera4kivy/preview_kivycamera.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def capture_photo(self, location = '.', subdir = '', name = ''):
145145
##############################
146146

147147
# pinch/spread for zoom
148-
def cg_scale(self, touch0, touch1, scale, x, y):
148+
def cgb_zoom(self, touch0, touch1, x, y, scale):
149149
if platform == 'ios':
150150
if self._camera and self.enable_zoom_gesture:
151151
level = max(self.cg_zoom_level[self.index] * scale, 1)

0 commit comments

Comments
 (0)