Commit graph

2,140 commits

Author SHA1 Message Date
Julián Montes de Oca
c85f72f00d Add focus loss detection to TextInput, for keyboard dismissal (#802)
TextInput now self-detects when user taps outside its area and dismisses the keyboard.
The tap event is not consumed.

Fixes keyboard staying open when tapping widgets that don't grab focus.
2025-10-25 19:42:32 +02:00
Julián Montes de Oca
c2b5d770b8 Enhance touch handling by using touch radius across platforms. (#801)
- Updated hit testing to account for finger size
- added touch size retrieval in iOS and Android
2025-10-25 19:42:18 +02:00
Julián Montes de Oca
062b9930f7 Add touch-based drag scrolling to ScrollBar (#799)
* Add drag and flick scrolling to ScrollBars

* Move touch-based drag and flick implementation to ScrollBar
2025-10-25 19:41:36 +02:00
Julián Montes de Oca
90c69908ad Fix macOS high CPU usage during idle (#798)
- Main loop timer is no longer running unconditionally but rather armed/disarmed on demand
- Removed unnecessary repaint_windows() call
- File watcher is now only included for debug builds
2025-10-25 19:41:10 +02:00
Julián Montes de Oca
5b4b963e7d Fix Markdown and HTML ordered list numbering and alignment (#794)
* Fix numbered markdown lists repeating the first number

* Refactor list item padding calculation to accommodate multi-digit markers and fix alignment
2025-10-25 19:36:41 +02:00
Drin
1c4758655e feat: a native wayland backend (#793)
* initialize the event loop for wayland backend

Signed-off-by: drindr <dreamchancn@qq.com>

* feat: hidpi wayland and mouse event
- hidpi support with wayland
- mouse event support
- refactor some code

Signed-off-by: drindr <dreamchancn@qq.com>

* wayland xkbcommon for key pressing event

Signed-off-by: drindr <dreamchancn@qq.com>

* add support for IME in with wayland

---------

Signed-off-by: drindr <dreamchancn@qq.com>
Co-authored-by: makepaddev <20386332+makepaddev@users.noreply.github.com>
2025-10-25 19:35:58 +02:00
Julián Montes de Oca
48a1ecd52c Add audio input permission handling and example project (#792)
* Add permission handling for audio input

- Introduced `CheckPermission` and `RequestPermission` operations in `CxOsOp` for managing audio input permissions.
- Implemented permission status checks and requests across iOS, macOS, and Android.
- Added a new `Permission` module to define permission types and statuses.
- Updated event handling to include permission results in the event system.
- Updated manifest files to include necessary permissions for audio input on Android.

* Add audio example project

- Added a new example project for audio processing and permission handling
- Implemented UI components for audio device selection, microphone capture, and playback controls.
- Integrated permission handling for audio input and updated the workspace configuration to include the new example.

* Implement audio permission in Web, catch up Linux and Windows

* Refactor iOS permission handling to avoid ios_app re-entrancy

* Implement iOS mic capture and add sample rate to AudioInfo

* Ensure iOS audio output uses loudspeaker, only when not using external devices

* Enhance audio example by handling sample rates and resampling
2025-10-25 19:15:57 +02:00
Julián Montes de Oca
b2ec4bee5e Fix double borrowing if IOS_APP during window geometry check (#791)
Co-authored-by: Julian Montes de Oca <joulei@buriza.local>
2025-10-25 19:15:44 +02:00
Julián Montes de Oca
f9760ad434 Fix websockets drop panic (#790) 2025-10-25 19:15:22 +02:00
Guocork
2cc316d849 Change XStoreName to Xutf8SetWMProperties (#742)
* Fix bug in text centering

* change XStoreName to Xutf8SetWMProperties

---------

Co-authored-by: Eddy Bruel <me@eddybruel.com>
Co-authored-by: Admin <info@makepad.nl>
Co-authored-by: makepaddev <20386332+makepaddev@users.noreply.github.com>
2025-10-25 18:57:22 +02:00
Admin
d28475c55f vec and option 2025-10-25 17:32:37 +02:00
Admin
904c4cafad vec and option 2025-10-25 17:03:17 +02:00
Admin
33265fa527 vec and option 2025-10-25 16:39:23 +02:00
Admin
05050f0ed0 rolled up script procmacros 2025-10-25 15:29:36 +02:00
Admin
f918aeadea enums otw 2025-10-24 17:30:12 +02:00
Admin
f8ea6c2416 enums otw 2025-10-24 16:15:35 +02:00
Admin
24c2febff9 typechecker infra 2025-10-24 13:43:45 +02:00
Eddy Bruel
07fbece97f Rethink selection drag scrolling as a post-op during draw 2025-10-24 11:40:36 +02:00
admin
3a2086f32e type info otw 2025-10-24 10:03:51 +02:00
Eddy Bruel
3634a1c9e1 Implement vertical selection drag scrolling for TextInput 2025-10-23 10:48:02 +02:00
admin
09c9b6901d dirty tracking and procmacro first run 2025-10-22 14:58:01 +02:00
admin
0dc6ddf1b3 dirty tracking and procmacro first run 2025-10-22 14:57:10 +02:00
admin
3fa5fe6048 fix 2025-10-22 14:57:00 +02:00
admin
ad1405b92d add dirty flags on fields 2025-10-21 20:44:12 +02:00
Admin
43a34d0253 procmacro prep 2025-10-21 13:40:38 +02:00
Admin
708f5cdd37 procmacro prep 2025-10-21 12:28:09 +02:00
Eddy Bruel
9af5173fae Add ascender to selection rects 2025-10-21 12:24:33 +02:00
Admin
5533b1ccf5 procmacro prep 2025-10-21 12:04:58 +02:00
Admin
94c0eae60b make trap a cell 2025-10-21 11:27:26 +02:00
Admin
830eb038f2 prepare procmacros 2025-10-21 10:26:39 +02:00
Admin
49f966e9b5 added tests 2025-10-20 14:29:11 +02:00
Admin
65eb176d37 added try 2025-10-20 14:20:11 +02:00
Admin
22a5167e61 added try 2025-10-20 14:14:02 +02:00
Admin
76ac4dec9d added try 2025-10-20 14:07:23 +02:00
Admin
1da7a177d7 change trapping mechanism 2025-10-20 12:00:05 +02:00
Admin
6ffc0816ce change trapping mechanism 2025-10-20 11:46:09 +02:00
Admin
10e4a94842 change trapping mechanism 2025-10-20 11:39:37 +02:00
Admin
729c444605 fixed tests 2025-10-19 18:43:26 +02:00
Admin
0f9f0c45fc scope inherits when shadowing 2025-10-19 18:25:50 +02:00
Admin
dfd379ced8 fixed tests 2025-10-18 13:35:56 +02:00
alanpoon
7f8002bddc allow apply_over for image_scale and image_pan (#788) 2025-10-18 10:12:21 +02:00
Admin
76c59cc440 fixed tests 2025-10-17 21:58:13 +02:00
Admin
ff8b60ea41 fixed tests 2025-10-17 17:19:40 +02:00
Admin
2ae04f972a fixed tests 2025-10-17 17:15:02 +02:00
Admin
306556ecb9 fixed tests 2025-10-17 17:12:53 +02:00
Admin
ebbe7dcbe4 added access rights to script objects 2025-10-17 16:36:57 +02:00
Admin
b10a48cc85 special hashmap for keys 2025-10-17 10:57:53 +02:00
Admin
d1e273e55b fix up tests 2025-10-17 10:30:19 +02:00
Admin
6dcf225423 fix up tests 2025-10-17 10:03:54 +02:00
Admin
cf9bb30193 add ip tracing to setvalue 2025-10-17 09:25:06 +02:00