Skip to content

Commit c3ba4ff

Browse files
committed
Merge pull request textAngular#904 from JoelParke/master
fix(main.js): we now hide the popover at the end of the image resize.
2 parents 6fd8a01 + d9cfcf1 commit c3ba4ff

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/main.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,14 @@ textAngular.directive("textAngular", [
242242
event.preventDefault();
243243
event.stopPropagation();
244244
_body.off('mousemove', mousemove);
245-
scope.showPopover(_el);
246245
// at this point, we need to force the model to update! since the css has changed!
247-
// this fixes bug: #862
248-
scope.updateTaBindtaTextElement();
246+
// this fixes bug: #862 - we now hide the popover -- as this seems more consitent.
247+
// there are still issues under firefox, the window does not repaint. -- not sure
248+
// how best to resolve this, but clicking anywhere works.
249+
scope.$apply(function (){
250+
scope.hidePopover();
251+
scope.updateTaBindtaTextElement();
252+
}, 100);
249253
});
250254
event.stopPropagation();
251255
event.preventDefault();

0 commit comments

Comments
 (0)