From 54be2b4b48122d4bf63e2c044118022b087247ac Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Tue, 20 Jan 2015 17:19:20 -0800 Subject: [PATCH] Fixed issues with window resizing (m2) --- test/demo/m2/js/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/demo/m2/js/main.js b/test/demo/m2/js/main.js index 5b6cdcee..76448fe0 100644 --- a/test/demo/m2/js/main.js +++ b/test/demo/m2/js/main.js @@ -152,6 +152,8 @@ immediately: true }); + self.viewer.forceRedraw(); + self.viewer.svgOverlay('resize'); }); @@ -354,7 +356,8 @@ this.updateHighlight(); this.updateHover(-1); - setTimeout(function() { + clearTimeout(this.scrollTimeout); + this.scrollTimeout = setTimeout(function() { self.ignoreScroll = false; }, this.viewer.animationTime * 1000); },