Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ class PinchGestureHandler : GestureHandler<PinchGestureHandler>() {

override fun onScaleBegin(detector: ScaleGestureDetector): Boolean {
startingSpan = detector.currentSpan
if (state == STATE_UNDETERMINED) {
begin()
}
return true
}

Expand All @@ -57,7 +60,6 @@ class PinchGestureHandler : GestureHandler<PinchGestureHandler>() {
scaleGestureDetector = ScaleGestureDetector(context, gestureListener)
val configuration = ViewConfiguration.get(context)
spanSlop = configuration.scaledTouchSlop.toFloat()
begin()
}
scaleGestureDetector?.onTouchEvent(event)
var activePointers = event.pointerCount
Expand Down