Any mouseup events that occur outside simpla-img will deactivate it, this means that if you're panning / zooming and release the mouse after it's left the img, it will deactivate and all the controls will be hidden.
It should instead check to see if mousedown occurred inside simpla-img before mouseup to check if it started within simpla-img, and not deactivate if that's the case.
Any mouseup events that occur outside
simpla-img
will deactivate it, this means that if you're panning / zooming and release the mouse after it's left the img, it will deactivate and all the controls will be hidden.It should instead check to see if mousedown occurred inside
simpla-img
before mouseup to check if it started withinsimpla-img
, and not deactivate if that's the case.