Task #7241 (closed)
Web ROIs redrawn continuously on pan
Reported by: | wmoore | Owned by: | atarkowska |
---|---|---|---|
Priority: | minor | Milestone: | OMERO-4.4 |
Component: | Web | Version: | n.a. |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | n.a. |
Description
When the panojs viewer moves to a point (E.g. recentres on a clicked shape) the
ROIControl.prototype.viewerMoved
method is called repeatedly during the pan. This causes the shapes to be redrawn multiple times.
The code below should probably not call setRoiZoom or refresh_rois unless Zoom or Z/T have changed.
if (vp.viewportimg.get(0).refresh_rois) { vp.viewportimg.get(0).setRoiZoom(this.scale*100); } if (vp.viewportimg.get(0).setRoiZoom) { vp.viewportimg.get(0).refresh_rois(theZ, theT); }
Change History (2)
comment:1 Changed 12 years ago by wmoore
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 12 years ago by Will Moore <will@…>
- Remaining Time set to 0
(In [578d1ed233376c4b095e8809bd53e77c5b0ca3ee/ome.git]) Only refresh ROIs on panoJS move if Z and T have changed. Closes #7241
Fixed with commit: http://github.com/will-moore/openmicroscopy/commit/578d1ed233376c4b095e8809bd53e77c5b0ca3ee