mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
No autoscroll when window height is smaller than content
This commit is contained in:
parent
75b2300b23
commit
5ffa7dbca7
@ -1325,11 +1325,13 @@
|
|||||||
has_handled_noscroll = true;
|
has_handled_noscroll = true;
|
||||||
Materialize.toast('Continue scrolling to read on...', 5000);
|
Materialize.toast('Continue scrolling to read on...', 5000);
|
||||||
} else {
|
} else {
|
||||||
$("main .mCSB_container").animate({
|
if ($(window).height() < $("main .mCSB_container").height()) {
|
||||||
top: -1 * ($("main .mCSB_container").height() - $(window).height())
|
$("main .mCSB_container").animate({
|
||||||
}, "slow", function () {
|
top: -1 * ($("main .mCSB_container").height() - $(window).height())
|
||||||
$("main").mCustomScrollbar("update");
|
}, "slow", function () {
|
||||||
});
|
$("main").mCustomScrollbar("update");
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$('#chatcontent').linkify({
|
$('#chatcontent').linkify({
|
||||||
|
Loading…
Reference in New Issue
Block a user