~ci-train-bot/unity8/unity8-ubuntu-zesty-2026

« back to all changes in this revision

Viewing changes to qml/Stage/MoveHandler.qml

  • Committer: Bileto Bot
  • Author(s): Michael Zanetti
  • Date: 2016-10-24 11:34:08 UTC
  • mfrom: (2400.6.204 unity8-unified-spread)
  • Revision ID: ci-train-bot@canonical.com-20161024113408-7ul8ivww68dqm74v
Merge all Stages into one single codebase. Apply new spread visuals.

This deletes PhoneStage, TabletStage and DesktopStage, and merges all of the functionality into Stage. Also the spread visuals have been updated by design to work with all usage modes. (LP: #1489517, #1603914, #1635800)

Approved by: Lukáš Tinkl

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
            // Use integer coordinate values to ensure that target is left in a pixel-aligned
113
113
            // position. Mouse movement could have subpixel precision, yielding a fractional
114
114
            // mouse position.
115
 
            target.requestedX = Math.round(pos.x - priv.distanceX);
116
 
            target.requestedY = Math.round(Math.max(pos.y - priv.distanceY, PanelState.panelHeight));
 
115
            target.windowedX = Math.round(pos.x - priv.distanceX);
 
116
            target.windowedY = Math.round(Math.max(pos.y - priv.distanceY, PanelState.panelHeight));
117
117
 
118
118
            if (sensingPoints) { // edge/corner detection when dragging via the touch overlay
119
119
                if (sensingPoints.topLeft.x < priv.triggerArea && sensingPoints.topLeft.y < PanelState.panelHeight + priv.triggerArea