mirror of
https://github.com/Cuteminded/jellyframe.git
synced 2026-10-17 18:00:32 +02:00
This change replaces the old playback button strip with a transparent overlay attached to the movie screen. It adds a seekable timeline, duration reporting, and proper seek routing for resumed/transcoded streams while preserving paused state and overlay behavior across settings and recenter actions. Pointer and scroll handling were also hardened to improve controller input stability, including hover tracking, exit handling, aim smoothing, and synthetic wheel release events. Regression tests and testing notes were extended to cover overlay toggling, timeline formatting, seek flows, recenter behavior, and pointer/scroll edge cases.
17 lines
436 B
GDScript
17 lines
436 B
GDScript
class_name PointerAim
|
|
extends RefCounted
|
|
|
|
var position := Vector2.ZERO
|
|
var initialized := false
|
|
|
|
func update(raw: Vector2, delta: float, pressing: bool) -> Vector2:
|
|
if not initialized or position.distance_to(raw) > 90.0:
|
|
position = raw
|
|
initialized = true
|
|
elif not pressing or position.distance_to(raw) > 32.0:
|
|
position = position.lerp(raw, 1.0 - exp(-delta / 0.035))
|
|
return position
|
|
|
|
func reset() -> void:
|
|
initialized = false
|