feat(ui): pointer events for natives and elements, with capture; on-down and on-up; hits in painting order
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d2b0413c30
commit
0aad2294ec
20 changed files with 349 additions and 46 deletions
12
examples/library/ui_pointer_parts/Chart.ludic
Normal file
12
examples/library/ui_pointer_parts/Chart.ludic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Chart.ludic - a native map with a zoom button over it, a pad that takes pointer events in markup,
|
||||
# and a hold button that says when it goes down and comes up
|
||||
component Chart {
|
||||
state zoomed: int = 0
|
||||
state px: float = -1.0
|
||||
state dragx: float = 0.0
|
||||
state ups: int = 0
|
||||
state wh: float = 0.0
|
||||
state holding: bool = false
|
||||
state held: int = 0
|
||||
state clicked: int = 0
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue