Skip to content

Commit

Permalink
Fixed zoom not working once returning from fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
avivais committed May 10, 2012
1 parent 95694bc commit eaef844
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/EmbedPlayer/mw.IFramePlayerApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ mw.IFramePlayerApiClient.prototype = {
} else{
// Restore user zoom: ( NOTE, there does not appear to be a way to know the
// initial scale, so we just restore to 1 in the absence of explicit viewport tag )
$('meta[name="viewport"]').attr('content', 'initial-scale=1;');
// In order to restore zoom, we must set maximum-scale to a valid value
$('meta[name="viewport"]').attr('content', 'initial-scale=1; maximum-scale=8; minimum-scale=1;' );
}

$iframe
Expand Down

0 comments on commit eaef844

Please sign in to comment.