annotorious / annotorious-openseadragon

An OpenSeadragon plugin for annotating high-res zoomable images
https://annotorious.github.io
BSD 3-Clause "New" or "Revised" License
121 stars 42 forks source link

Cancel SetDrawingMode #149

Open TrackerFlat opened 1 year ago

TrackerFlat commented 1 year ago

Hi guys,

I've encountered a minor issue when trying to return the plugin to default behaviour after setting drawing mode to true if a user decides not to draw an annotation.

User Case:

  1. User Selects Draw mode (setDrawingEnabled(true))
  2. User decides they no longer want to annotation and return back to default behaviour (Pan)

Current behaviour:

  1. User Selects Draw mode (setDrawingEnabled(true))
  2. User decides they no longer want to annotation and return back to default behaviour (Pan) (press Escape)
  3. The drawing mode is still turned on and panning results in the start of a marquee.

Question: Is there a way to escape drawing mode without completing the annotation?

Thanks