dAxpeDDa
a7a8ff0bbb
Drop pointerrawupdate
support
2023-06-13 10:23:48 +02:00
Xiaopeng Li
07d39abddd
Fix panic when destroying window ( #2773 )
...
* Fix crash when destroying window
* Add a comment to draw_rect
---------
Co-authored-by: Xiaopeng Li <lixiaopeng.jetspark@bytedance.com>
2023-06-09 16:20:27 +03:00
dAxpeDDa
b5785ba785
Revert "Fix Window::set_inner_size()
"
...
This reverts commit e220a75556
.
2023-06-08 09:09:46 +02:00
dAxpeDDa
9797ed86f0
Fix unable to ignore scale factor resize suggestion
2023-06-07 22:46:14 +02:00
dAxpeDDa
e220a75556
Fix Window::set_inner_size()
2023-06-07 14:53:59 +02:00
Robin Thunström
4a36741f9c
On Android, change default implementation to ignore volume keys and let operating system handle them ( #2748 )
2023-06-06 23:04:51 +02:00
dAxpeDDa
ab46aa5b79
Replace beforeunload
with pagehide
2023-06-05 16:40:53 +02:00
dAxpeDDa
12fb37d827
Make media queries more robust
2023-06-05 16:11:22 +02:00
dAxpeDDa
c88a4ab221
Use correct canvas size for scale factor change
2023-06-05 15:39:17 +02:00
daxpedda
8f7f3efc0d
On Web, implement Send
and Sync
where appropriate ( #2834 )
2023-06-05 02:44:54 +02:00
dAxpeDDa
3f4f580181
Add pointerrawupdate
support
2023-06-05 02:04:37 +02:00
dAxpeDDa
964e342f69
Prevent text selection
2023-06-05 02:04:37 +02:00
dAxpeDDa
a134a59917
Remove MouseEvent
fallback support
2023-06-05 02:04:37 +02:00
dAxpeDDa
fbba203c4a
Focus window on touch press
2023-06-05 02:04:37 +02:00
dAxpeDDa
61bd8b8254
Send position on button release
2023-06-05 02:04:37 +02:00
dAxpeDDa
7500a88230
Fix up changelog
2023-06-04 13:45:43 +02:00
dAxpeDDa
82d0380ea6
Ignore pen input on Web
2023-06-04 00:23:47 +02:00
John Nunley
642ce2bfa7
Port to windows-sys v0.48.0 ( #2842 )
2023-06-04 00:02:37 +02:00
dAxpeDDa
5bbe87960e
Replace instant
with web-time
2023-06-03 16:05:44 +02:00
dAxpeDDa
4f3eacf01e
On Web, handle coalesced events
2023-06-02 18:48:34 +02:00
George Burton
31ebc5caf4
Update bitflags
to 2.0
...
Co-authored-by: dAxpeDDa <daxpedda@gmail.com>
2023-06-02 17:44:36 +03:00
dAxpeDDa
d273518ce9
Process pointer button events
2023-06-02 12:41:35 +02:00
dAxpeDDa
ba5ad3be13
On Web, fix no-op for Window::set_fullscreen
2023-05-31 15:25:15 +02:00
dAxpeDDa
8092fa2440
Fix changelog
2023-05-31 13:47:34 +02:00
Toniman575
8bb004a1d9
Rename DeviceEventFilter
to DeviceEvents
...
The use of `Filter` was confusing so it was removed inverting the
behavior of the enum and methods using it.
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
2023-05-30 22:32:31 +03:00
Simon Hausmann
de5327477a
web: Fix position of touch events to be relative to the canvas
...
Use the same logic as for mouse events when not captured.
2023-05-30 21:21:41 +02:00
dAxpeDDa
1805124c54
On Web, wake event loop on request_redraw()
2023-05-28 23:22:08 +02:00
dAxpeDDa
0f64589dba
Don't change the internal canvas size
2023-05-28 23:10:33 +02:00
Markus Røyset
918430979f
Overhaul the Keyboard API
...
Overhaul the keyboard API in winit to mimic the W3C specification
to achieve better crossplatform parity. The `KeyboardInput` event
is now uses `KeyEvent` which consists of:
- `physical_key` - a cross platform way to refer to scancodes;
- `logical_key` - keysym value, which shows your key respecting the
layout;
- `text` - the text produced by this keypress;
- `location` - the location of the key on the keyboard;
- `repeat` - whether the key was produced by the repeat.
And also a `platform_specific` field which encapsulates extra
information on desktop platforms, like key without modifiers
and text with all modifiers.
The `Modifiers` were also slightly reworked as in, the information
whether the left or right modifier is pressed is now also exposed
on platforms where it could be queried reliably. The support was
also added for the web and orbital platforms finishing the API
change.
This change made the `OptionAsAlt` API on macOS redundant thus it
was removed all together.
Co-authored-by: Artúr Kovács <kovacs.artur.barnabas@gmail.com>
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Co-authored-by: daxpedda <daxpedda@gmail.com>
Fixes : #2631 .
Fixes : #2055 .
Fixes : #2032 .
Fixes : #1904 .
Fixes : #1810 .
Fixes : #1700 .
Fixes : #1443 .
Fixes : #1343 .
Fixes : #1208 .
Fixes : #1151 .
Fixes : #812 .
Fixes : #600 .
Fixes : #361 .
Fixes : #343 .
2023-05-28 21:02:59 +03:00
John Nunley
3c3be71a77
Implement PartialOrd/Ord for dpi module types
2023-05-16 05:11:43 +03:00
Kirill Chibisov
a7986b077f
Bump version on master
...
This commit does not represent a release and only synchronizes CHANGELOG
from the latest release.
2023-05-14 20:36:23 +03:00
Kirill Chibisov
a9e168e10d
On macOS, fix backspace emission on preedit clear
...
Fixes: d15feb5cfa
(On macOS, fix empty marked text)
2023-05-13 03:02:05 +03:00
Kirill Chibisov
bd9cc2a9da
Use cursor-icon
crate for CursorIcon
...
This crate is aimed to simplify handling of cursor icon across
various crates and be used in the public API.
2023-05-09 20:19:35 +03:00
Kirill Chibisov
596c0edf0f
Bump version on master
...
This commit does not represent a release and only synchronizes CHANGELOG
from the latest release.
2023-05-09 18:28:20 +03:00
Xiaopeng Li
92592ec605
Fix device description leak ( #2758 )
...
* Fix device description leak
* Update CHANGELOG.md
---------
Co-authored-by: Xiaopeng Li <lixiaopeng.jetspark@bytedance.com>
2023-05-08 17:58:34 +03:00
Kirill Chibisov
25c4e2e451
On macOS, fix key_up
being ignored without IME
...
Fixes: d15feb5cfa
(On macOS, fix empty marked text)
2023-05-06 14:05:28 +03:00
Kirill Chibisov
ad52c72e41
Bump version on master
...
This commit does not represent a release and only synchronizes CHANGELOG
from the latest release.
2023-05-05 13:27:22 +03:00
Kirill Chibisov
d15feb5cfa
On macOS, fix empty marked text blocking input
...
Fixes #2775 .
2023-05-04 00:24:02 +03:00
Kirill Chibisov
2496098890
Update wayland-rs to 0.30.0
...
This update rewrites the winit's Wayland backend using new wayland-rs
0.30 API. This fixes long standing issue with the forward compatibility
of the wayland backend, meaning that future updates to the wayland
protocol won't break rust code anymore. like it was before when adding
new shm/enum variants into the protocol.
Fixes #2560 .
Fixes #2164 .
Fixes #2128 .
Fixes #1760 .
Fixes #725 .
2023-04-19 00:56:29 +03:00
Amandus Søve Thorsrud
60e91b187a
Run Window::set_ime_position
on main thread on macOS
...
Fixes #2756 .
2023-04-15 02:58:36 +03:00
Xiaopeng Li
2486f0f1a1
Fix potential panic ( #2755 )
...
* Fix potential panic
* Update CHANGELOG.md
* Use checked_div
---------
Co-authored-by: Xiaopeng Li <lixiaopeng.jetspark@bytedance.com>
2023-04-03 21:46:09 +03:00
Kirill Chibisov
d4c9535af9
Bump version on master
...
This commit does not represent a release and only synchronizes CHANGELOG
from the latest release.
2023-03-16 23:05:17 +03:00
Mads Marquart
77f8e511e9
Fix macos memory leaks ( #2739 )
...
* Use a weak reference from WinitView to WinitWindow
* Allow patched objc2 version
* Add changelog entry
2023-03-14 13:27:41 +03:00
Kirill Chibisov
b18295a1ce
Bump MSRV to 1.64
2023-03-08 19:34:10 +03:00
Kirill Chibisov
08bdca19b1
Bump version on master
...
This commit does not represent a release and only
synchronizes CHANGELOG from the latest release.
2023-03-02 17:15:48 +03:00
Dylan Scott
79ac236721
On macOS, resize simple fullscreen on window move
...
Fixes #1118 .
2023-03-02 01:47:45 +03:00
Nicolas Mazzon
b870a11a99
On Windows, check whether CoCreateInstance succeeds
2023-03-02 01:24:04 +03:00
Kirill Chibisov
2af1550bbb
On macOS, fix initial focused state
...
The synthetic focused event was queued after the real event was send
leading to focused issues on startup.
Fixes #2695 .
2023-02-27 20:46:00 +03:00
Kirill Chibisov
a006cd7dc8
On Wayland, fix rounding issue in resizes
2023-02-21 11:44:22 +03:00
Simon Hausmann
a31f71ee07
Add support for Window::theme
on the web ( #2687 )
2023-02-20 08:51:21 +01:00