From 262b63683d936f35d2f1ffdd4da313aa2c82b5c4 Mon Sep 17 00:00:00 2001 From: Joe Wroten Date: Mon, 8 Aug 2016 00:24:18 -0500 Subject: [PATCH] Fixed spell details not scrolling with user --- dist/app.js | 4 ++-- src/app.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/app.js b/dist/app.js index 7c19883..4597666 100644 --- a/dist/app.js +++ b/dist/app.js @@ -330,9 +330,9 @@ $('body') renderPrint(); }).on('change', 'input[name=selected][type=checkbox]', renderPrint).on('click', '[data-action=print]', e => { window.print(); -}) +}); // Article Scroll with User -.on('scroll', '.mdl-layout__content', debounce(() => { +$('.mdl-layout__content').on('scroll', debounce(() => { let distance = $('.mdl-layout__content')[0].scrollTop; $('[data-template=spell-details]').css('margin-top', distance); }, 10)); diff --git a/src/app.js b/src/app.js index 75dff94..f2c9c0c 100644 --- a/src/app.js +++ b/src/app.js @@ -343,9 +343,9 @@ $('body') .on('change', 'input[name=selected][type=checkbox]', renderPrint) .on('click', '[data-action=print]', e => { window.print(); -}) +}); // Article Scroll with User -.on('scroll', '.mdl-layout__content', debounce(() => { +$('.mdl-layout__content').on('scroll', debounce(() => { let distance = $('.mdl-layout__content')[0].scrollTop; $('[data-template=spell-details]').css('margin-top', distance); }, 10));