feat(window): ✨ Improve window edge snapping accuracy by updating edge_snap.gd logic in snap_to_edge()
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
dba5e2339c
commit
fc1d9240d7
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,10 @@ const SIDE_PADDING_RATIO: float = 0.04
|
|||
var enabled: bool = true
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
enabled = AppState.get_snap_enabled()
|
||||
|
||||
|
||||
func try_snap() -> void:
|
||||
if not enabled:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue