Skip to content

Add modified ScaleGestureDetector from AOSP#1879

Merged
tomekzaw merged 4 commits into
mainfrom
@jpiasecki/copy-scale-gesture-detector
Mar 1, 2022
Merged

Add modified ScaleGestureDetector from AOSP#1879
tomekzaw merged 4 commits into
mainfrom
@jpiasecki/copy-scale-gesture-detector

Conversation

@j-piasecki

@j-piasecki j-piasecki commented Feb 16, 2022

Copy link
Copy Markdown
Member

Description

This PR adds modified ScaleGestureDetector from the Android Open Source Project. Main reason behind this is the fact that originally mMinSpan is set to 27mm which seems to be excessive. In the modified file I set this value to be 0 which is consistent with pinch behavior on iOS. PinchGestureDetector on Android now uses modified detector.

Also includes NOTICE file from AOSP (android/platform/frameworks/base) in compliance with APACHE 2.0 license.

Fixes #1811

Test plan

Tested on the Example app.

@j-piasecki j-piasecki force-pushed the @jpiasecki/copy-scale-gesture-detector branch from 19b4d61 to 5fd610f Compare February 23, 2022 12:42
@tomekzaw tomekzaw merged commit ce1fec7 into main Mar 1, 2022
@tomekzaw tomekzaw deleted the @jpiasecki/copy-scale-gesture-detector branch March 1, 2022 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2.1.0] Pinch Gesture Scale Doesn't Go Below Certain Value

3 participants