From e87d68923169cdff32c2ddf97981d2c7ac9efd2f Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sun, 28 Oct 2012 23:55:19 -0400 Subject: content now re-renders after alt+click zoom (closes #195) --- plugin/zoom-js/zoom.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugin/zoom-js') diff --git a/plugin/zoom-js/zoom.js b/plugin/zoom-js/zoom.js index 0ca3875..6b29f56 100644 --- a/plugin/zoom-js/zoom.js +++ b/plugin/zoom-js/zoom.js @@ -111,6 +111,13 @@ var zoom = (function(){ } level = scale; + + if( level !== 1 && document.documentElement.classList ) { + document.documentElement.classList.add( 'zoomed' ); + } + else { + document.documentElement.classList.remove( 'zoomed' ); + } } /** -- cgit v1.2.3