diff --git a/couchpotato/core/plugins/log/static/log.js b/couchpotato/core/plugins/log/static/log.js index d18701f..e19d44e 100644 --- a/couchpotato/core/plugins/log/static/log.js +++ b/couchpotato/core/plugins/log/static/log.js @@ -2,6 +2,7 @@ Page.Log = new Class({ Extends: PageBase, + disable_pointer_onscroll: false, order: 60, name: 'log', title: 'Show recent logs.', diff --git a/couchpotato/static/scripts/combined.base.min.js b/couchpotato/static/scripts/combined.base.min.js index a529870..dec203a 100644 --- a/couchpotato/static/scripts/combined.base.min.js +++ b/couchpotato/static/scripts/combined.base.min.js @@ -669,7 +669,7 @@ window.Api = new ApiClass(); var PageBase = new Class({ Implements: [ Options, Events ], - options: {}, + disable_pointer_onscroll: true, order: 1, has_tab: true, name: "", @@ -683,13 +683,15 @@ var PageBase = new Class({ self.el = new Element("div", { class: "page " + self.getPageClass() + (" level_" + (options.level || 0)) }).grab(self.content = new Element("div.scroll_content")); - App.addEvent("load", function() { - requestTimeout(function() { - if (!App.mobile_screen && !App.getOption("dev")) { - self.content.addEvent("scroll", self.preventHover.bind(self)); - } - }, 100); - }); + if (self.options.disable_pointer_onscroll) { + App.addEvent("load", function() { + requestTimeout(function() { + if (!App.mobile_screen && !App.getOption("dev")) { + self.content.addEvent("scroll", self.preventHover.bind(self)); + } + }, 100); + }); + } }, load: function() { var self = this; diff --git a/couchpotato/static/scripts/combined.plugins.min.js b/couchpotato/static/scripts/combined.plugins.min.js index 49e6c4d..4c177a4 100644 --- a/couchpotato/static/scripts/combined.plugins.min.js +++ b/couchpotato/static/scripts/combined.plugins.min.js @@ -2914,6 +2914,7 @@ var Category = new Class({ Page.Log = new Class({ Extends: PageBase, + disable_pointer_onscroll: false, order: 60, name: "log", title: "Show recent logs.", diff --git a/couchpotato/static/scripts/page.js b/couchpotato/static/scripts/page.js index 355a0dd..b954a22 100644 --- a/couchpotato/static/scripts/page.js +++ b/couchpotato/static/scripts/page.js @@ -2,10 +2,7 @@ var PageBase = new Class({ Implements: [Options, Events], - options: { - - }, - + disable_pointer_onscroll: true, order: 1, has_tab: true, name: '', @@ -28,13 +25,15 @@ var PageBase = new Class({ ); // Stop hover events while scrolling - App.addEvent('load', function(){ - requestTimeout(function(){ - if(!App.mobile_screen && !App.getOption('dev')){ - self.content.addEvent('scroll', self.preventHover.bind(self)); - } - }, 100); - }); + if(self.options.disable_pointer_onscroll){ + App.addEvent('load', function(){ + requestTimeout(function(){ + if(!App.mobile_screen && !App.getOption('dev')){ + self.content.addEvent('scroll', self.preventHover.bind(self)); + } + }, 100); + }); + } }, load: function(){ diff --git a/couchpotato/static/style/main.scss b/couchpotato/static/style/main.scss index afecd7b..cbb3869 100644 --- a/couchpotato/static/style/main.scss +++ b/couchpotato/static/style/main.scss @@ -128,6 +128,7 @@ input[type=text], textarea { font-size: 38px; line-height: $header_height; height: $header_height; + visibility: hidden; span { position: absolute;