Skip to content

Commit

Permalink
Merge pull request #210 from ds2268/master
Browse files Browse the repository at this point in the history
Click buffer of 10px - missing annotations
  • Loading branch information
manthey authored Jul 29, 2022
2 parents 533b4c6 + 0821be7 commit 665cce3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions histomicsui/web_client/views/body/ImageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ var ImageView = View.extend({
// store a reference to the underlying viewer
this.viewer = this.viewerWidget.viewer;
this.viewer.interactor().removeAction(geo.geo_action.zoomselect);

let currentOptions = this.viewer.interactor().options();
currentOptions.click.cancelOnMove = 10; // a click can move up to 10 pixels before it is considered a move
this.viewer.interactor().options(currentOptions)

this.imageWidth = this.viewer.maxBounds().right;
this.imageHeight = this.viewer.maxBounds().bottom;
Expand Down

0 comments on commit 665cce3

Please sign in to comment.