gcompris / GCompris-qt

GCompris in Qt Quick - Mirror of https://invent.kde.org/education/gcompris
218 stars 167 forks source link

Mouse "cursor" placement with multiple monitors #290

Closed jfcaron3 closed 10 months ago

jfcaron3 commented 10 months ago

I couldn't figure out how to take a screenshot that shows this nicely, but for the game "Découvre la souris" in French, the blue ducky cursor is misplaced, presumably because I have a second monitor.
Screenshot at 2023-10-14 11-17-26

The blue ducky is supposed to follow the cursor around, but it's offset unless I bring the cursor to the right-most edge of the primary monitor.

petitlapin commented 10 months ago

Hi,

thank you for the report, we'll take a look! It seems we don't take care of when the mouse leaves the screen (I can reproduce in windowed mode too)

Animtim commented 10 months ago

Hi, Actually, this is by design: the duck is not supposed to follow the mouse position, but to follow the mouse movements, which is quite different. In most cases, the duck will not be at the mouse position, unless the user plays with the offset to make them match intentionally, as the duck is initialized at a fixed position and can only move on a restricted area in the center of the window (it can't go to the top, bottom and left borders). So users can play changing the offset between cursor and duck positions by moving the cursor in the top/left/bottom stripes and back to the "move" area, or by clicking on the arrow buttons on the top-right.