Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2493)

Issue 7099046: Restore Mouse Wheel In PanZoom

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by bcsaller
Modified:
11 years, 3 months ago
Reviewers:
mp+143003
Visibility:
Public.

Description

Restore Mouse Wheel In PanZoom The default zoom behavior bound to mouse wheel was doing scaled translation that didn't play well with the rest of the pan/zoom math. This overrides the default behavior and fires a standard YUI zoom synthetic event. We are then able to manually apply the delta and manage scale/translate ourselves. https://code.launchpad.net/~bcsaller/juju-gui/scrollwheel/+merge/143003 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Restore Mouse Wheel In PanZoom #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -5 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
M app/views/topology/panzoom.js View 1 1 chunk +13 lines, -2 lines 0 comments Download
M app/views/topology/topology.js View 1 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 6
bcsaller
Please take a look.
11 years, 3 months ago (2013-01-11 23:55:49 UTC) #1
matthew.scott
The code looks good, but there are a few interaction problems that I'd at least ...
11 years, 3 months ago (2013-01-14 17:00:26 UTC) #2
matthew.scott
Additionally, it appears that panning is no longer working. This is one I don't think ...
11 years, 3 months ago (2013-01-14 17:10:25 UTC) #3
bcsaller
Pan, wow, didn't even notice that I was so focused on getting the zoom working. ...
11 years, 3 months ago (2013-01-14 17:54:28 UTC) #4
benji
Other than some unnecessary parenthesis, this looks great. https://codereview.appspot.com/7099046/diff/1/app/views/topology/panzoom.js File app/views/topology/panzoom.js (right): https://codereview.appspot.com/7099046/diff/1/app/views/topology/panzoom.js#newcode99 app/views/topology/panzoom.js:99: evt.scale ...
11 years, 3 months ago (2013-01-14 20:14:29 UTC) #5
bcsaller
11 years, 3 months ago (2013-01-15 20:32:19 UTC) #6
*** Submitted:

Restore Mouse Wheel In PanZoom

The default zoom behavior bound to mouse wheel was doing scaled translation
that didn't play well with the rest of the pan/zoom math. This overrides the
default behavior and fires a standard YUI zoom synthetic event. We are then 
able to manually apply the delta and manage scale/translate ourselves.

R=
CC=
https://codereview.appspot.com/7099046
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b