chore: gdformat isometric_follow_camera.gd for CI.
Co-authored-by: Cursor <cursoragent@cursor.com>pull/131/head
parent
83d1bb13e4
commit
a22c900655
|
|
@ -172,9 +172,7 @@ func _try_apply_trackpad_zoom_step(step: int) -> void:
|
|||
|
||||
## Accumulates trackpad pan delta; emits at most **one** band step per call.
|
||||
static func consume_pan_zoom_accumulator(
|
||||
accumulator: float,
|
||||
delta: Vector2,
|
||||
threshold: float = PAN_ZOOM_BAND_ACCUMULATOR_THRESHOLD
|
||||
accumulator: float, delta: Vector2, threshold: float = PAN_ZOOM_BAND_ACCUMULATOR_THRESHOLD
|
||||
) -> Dictionary:
|
||||
if absf(delta.y) <= absf(delta.x):
|
||||
return {"accumulator": accumulator, "step": 0}
|
||||
|
|
@ -188,9 +186,7 @@ static func consume_pan_zoom_accumulator(
|
|||
|
||||
## Accumulates pinch log-scale; emits at most **one** band step per call.
|
||||
static func consume_magnify_zoom_accumulator(
|
||||
accumulator: float,
|
||||
factor: float,
|
||||
threshold: float = MAGNIFY_ZOOM_LOG_ACCUMULATOR_THRESHOLD
|
||||
accumulator: float, factor: float, threshold: float = MAGNIFY_ZOOM_LOG_ACCUMULATOR_THRESHOLD
|
||||
) -> Dictionary:
|
||||
if factor <= 0.0:
|
||||
return {"accumulator": accumulator, "step": 0}
|
||||
|
|
|
|||
Loading…
Reference in New Issue