1
0
Fork 0

Fixed spell details not scrolling with user

This commit is contained in:
Joe Wroten 2016-08-08 00:24:18 -05:00
parent a87ed007da
commit 262b63683d
2 changed files with 4 additions and 4 deletions

4
dist/app.js vendored
View file

@ -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));

View file

@ -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));