Browse Source

Don't disable pointers on logs

pull/5430/head
Ruud 10 years ago
parent
commit
68b1610104
  1. 1
      couchpotato/core/plugins/log/static/log.js
  2. 18
      couchpotato/static/scripts/combined.base.min.js
  3. 1
      couchpotato/static/scripts/combined.plugins.min.js
  4. 21
      couchpotato/static/scripts/page.js
  5. 1
      couchpotato/static/style/main.scss

1
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.',

18
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;

1
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.",

21
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(){

1
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;

Loading…
Cancel
Save