From 3df31bb01bf958fffce3fe3c3e306a8664b633a4 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Mon, 6 Nov 2017 18:09:35 -0800 Subject: [PATCH] Lock scrolling of activity card overflow --- .../default/current_activity_instance.html | 2 +- data/interfaces/default/home_stats.html | 2 +- data/interfaces/default/index.html | 35 ++++++++++--------- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/data/interfaces/default/current_activity_instance.html b/data/interfaces/default/current_activity_instance.html index 21f212fc..5559804f 100644 --- a/data/interfaces/default/current_activity_instance.html +++ b/data/interfaces/default/current_activity_instance.html @@ -125,7 +125,7 @@ DOCUMENTATION :: END
-
+
  • Platform
    diff --git a/data/interfaces/default/home_stats.html b/data/interfaces/default/home_stats.html index d0e821ef..37e6d70e 100644 --- a/data/interfaces/default/home_stats.html +++ b/data/interfaces/default/home_stats.html @@ -119,7 +119,7 @@ DOCUMENTATION :: END % endif
-
+
    % for row in top_stat['rows']:
  • height) { + $(instance).on('mousewheel', function(e, d) { + if(($(instance).scrollTop() >= (scrollHeight - height)) && d < 0 || ($(instance).scrollTop() <= 0) && d > 0) { + e.preventDefault(); + } + }); + } + }); + }; % if 'current_activity' in config['home_sections']: % endif % if 'library_stats' in config['home_sections']: