mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Merge pull request #534 from ET-Bent/patch-1
Fix terminal scrolling and terminalNotify
This commit is contained in:
@@ -116,7 +116,7 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$terminal.on('scroll', function () {
|
$terminal.on('scroll', function () {
|
||||||
if ($(this).scrollTop() + $(this).innerHeight() < $(this)[0].scrollHeight) {
|
if ($(this).scrollTop() + $(this).innerHeight() + 50 < $(this)[0].scrollHeight) {
|
||||||
$scrollNotify.removeClass('hidden');
|
$scrollNotify.removeClass('hidden');
|
||||||
} else {
|
} else {
|
||||||
$scrollNotify.addClass('hidden');
|
$scrollNotify.addClass('hidden');
|
||||||
|
|||||||
Reference in New Issue
Block a user