Skip to content

Commit

Permalink
switch what shift means: shift-drag is a new view
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jul 25, 2021
1 parent 74a9bdf commit ed12cca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/aptus/web/static/aptus.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ const App = {
const dy = movedto.y - this.rubstart.y;
if (!this.mouse_dragging && Math.abs(dx) + Math.abs(dy) > 5) {
this.mouse_dragging = true;
this.set_moving(this.mouse_shift);
this.set_moving(!this.mouse_shift);
}
clear_canvas(view.overlay_canvas);
if (this.mouse_dragging) {
Expand Down
4 changes: 2 additions & 2 deletions src/aptus/web/templates/mainpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
<p>
<b>click</b>: zoom in {{altnote}}<br/>
<b>shift-click</b>: zoom out {{altnote}}<br/>
<b>click-drag</b>: select new viewing rectangle<br/>
<b>shift-click-drag</b>: pan the view<br/>
<b>click-drag</b>: pan the view<br/>
<b>shift-click-drag</b>: select new viewing rectangle<br/>
<br/>
{{altnote}} +{{alt}}: just a little<br/>
</p>
Expand Down

0 comments on commit ed12cca

Please sign in to comment.