4ian / GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.

Home Page:https://gdevelop.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mouse Pointer Lock or TimeDelta() bug in Mac browser run games when scenery is moving.

VanCastar opened this issue · comments

Is there an existing issue for this?

Describe the bug

There is a nasty bug in the Mouse Lock extension OR defining the TimeDelta() that is used to check the movement offset that appears only on Mac when playing on a browser in full screen mode.
-On Firefox Mac the mouse movement offset is broken resulting in leaving the cursor behind

  • On Safari Mac the mouse works even worse.
  • On Chrome Mac the movement is way over sensitive.
  • On Mac desktop launchable the game works just fine with no problem.
  • On windows and Linux there seems to not be any problem.

The movement for some reason in those configuration will make the cursor movement to break.

This is the way I use it on a moving layer.
image

You can test it out in Global Neon Blitz game when playing the game.
https://gd.games/raminiemi/galactic-neon-blitz
Tested on Macbook Pro M1

PS: Unfortunately I can't bug test it on my end I'm just relaying the problematic behaviour present in my friends work computer.

Steps to reproduce

https://gd.games/raminiemi/galactic-neon-blitz

GDevelop platform

Desktop

GDevelop version

5.3.189

Platform info

Problem occurs only on Mac browsers.
Tested on using Macbook Pro M1 Safari, Firefox and Chrome
Executables on Mac work just fine.

Additional context

I'm not sure if it's the MousePointerLock extension or TimeDelta() or something else as all works just fine on PC and Linux and I cannot test it on Mac myself.