Fixed spell details not scrolling with user
This commit is contained in:
parent
a87ed007da
commit
262b63683d
2 changed files with 4 additions and 4 deletions
4
dist/app.js
vendored
4
dist/app.js
vendored
|
@ -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));
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue