Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/native/ios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@
let size: u64 = msg_send![enumerator, count];
let enumerator: ObjcId = msg_send![enumerator, objectEnumerator];

for touch_id in 0..size {
for _ in 0..size {
let ios_touch: ObjcId = msg_send![enumerator, nextObject];
// Use the UITouch pointer as a stable ID instead of loop index
let touch_id = ios_touch as u64;
let mut ios_pos: NSPoint = msg_send![ios_touch, locationInView: this];

if native_display().lock().unwrap().high_dpi {
Expand Down Expand Up @@ -488,7 +490,7 @@
_: ObjcId,
) -> BOOL {
unsafe {
let (f, conf) = RUN_ARGS.take().unwrap();

Check warning on line 493 in src/native/ios.rs

View workflow job for this annotation

GitHub Actions / Build (macos-latest, x86_64-apple-ios)

creating a mutable reference to mutable static

Check warning on line 493 in src/native/ios.rs

View workflow job for this annotation

GitHub Actions / Build (macos-latest, aarch64-apple-ios)

creating a mutable reference to mutable static

let main_screen: ObjcId = msg_send![class!(UIScreen), mainScreen];
let screen_rect: NSRect = msg_send![main_screen, bounds];
Expand Down
Loading