Skip to content

Commit

Permalink
Minor performance enhancement on non webkit.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredck committed Oct 7, 2013
1 parent 61f7511 commit 1c06038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/floatpanel/plugin.js
Expand Up @@ -364,7 +364,7 @@ CKEDITOR.plugins.add( 'floatpanel', {
panel.isLoaded ? panelLoad() : panel.onLoad = panelLoad;

CKEDITOR.tools.setTimeout( function() {
var scrollTop = CKEDITOR.document.getWindow().getScrollPosition().y;
var scrollTop = CKEDITOR.env.webkit && CKEDITOR.document.getWindow().getScrollPosition().y;

// Focus the panel frame first, so blur gets fired.
this.focus();
Expand Down

0 comments on commit 1c06038

Please sign in to comment.