mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-09 08:38:53 +01:00
Fix phone scrolling of logprobs
This commit is contained in:
parent
ecceeec62a
commit
558bbce919
@ -110,7 +110,9 @@ function renderAlternativeTokensView() {
|
||||
|
||||
// scroll past long prior context
|
||||
if (prefix) {
|
||||
view.find('.logprobs_output_token').first()[0].scrollIntoView();
|
||||
const element = view.find('.logprobs_output_token').first();
|
||||
const scrollOffset = element.offset().top - element.parent().offset().top;
|
||||
element.parent().scrollTop(scrollOffset);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user