Marble: solved visual glitches on mouse events

Review Request #122426 - Created Feb. 4, 2015 and submitted

Information
Constantin Mihalache
marble
master
Reviewers
marble

Bug#1: When double-clicking and the mouse cursor is not above the map, zoom-in triggers and this came as very annoying while trying to pan the globe without dragging.

-coding:
-addded an if statement which tests whether the mouse is/isn't above the map.
Bug#2: While the globe is spinning (after a mouse drag), using pan with arrows causes a visual glitch: the globe jumps to a position for a fraction of a second but it continues its spin.

-coding:
-added a bool function to KineticModel which retruns whether the globe is spinning or not (checking its velocity). this helped me further on.
-added an extra condition which ensures that panning with arrows triggers only when the globe's velocity is null.

Built the project after applying the patch. Worked as expected.

Constantin Mihalache
Constantin Mihalache
Constantin Mihalache
Calin Cruceru
Constantin Mihalache
Constantin Mihalache
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 5d866990b231234429de3f794fe1512abd91977e by Torsten Rahn on behalf of Constantin Mihalache to branch master.
Loading...