Merge pull request #636 from Powerbyte7/patch-1

Fix jumps in scale and rotation when pinching
This commit is contained in:
Aaron Franke 2021-07-18 11:19:48 -07:00 committed by GitHub
commit 89978a7421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -78,12 +78,8 @@ func _gui_input(event):
if not event.pressed and base_state.has(event.index):
# Some known touching finger released.
# Remove released finger from the base state.
base_state.erase(event.index)
# Reset the base state to the now only toyching finger.
base_state = {
curr_state.keys()[0]: curr_state.values()[0],
}
# Clear the base state
base_state.clear()
elif event is InputEventScreenDrag:
if curr_state.has(event.index):