Commit 56152d7 1 parent d3bcec8 commit 56152d7 Copy full SHA for 56152d7
File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -10630,11 +10630,11 @@
10630
10630
'--terminal-height': self.height(),
10631
10631
'--terminal-x': offset.left - self_offset.left,
10632
10632
'--terminal-y': offset.top - self_offset.top,
10633
- '--terminal-scroll': self .prop('scrollTop')
10633
+ '--terminal-scroll': scroller .prop('scrollTop')
10634
10634
});
10635
10635
if (enabled) {
10636
- // Firefox won't reflow the cursor automatically, so
10637
- // hide it briefly then reshow it
10636
+ // Firefox won't reflow the cursor automatically,
10637
+ // so we hide it briefly then reshow it
10638
10638
cmd_cursor.hide();
10639
10639
self.oneTime(1, 'flush', function() {
10640
10640
cmd_cursor.show();
12020
12020
if (!move) {
12021
12021
if (!enabled) {
12022
12022
clip.focus();
12023
+ window.visualViewport.addEventListener('resize', function(event) {
12024
+ self.scroll_to_bottom();
12025
+ var scroll_pos = scroller.prop('scrollTop');
12026
+ css(self[0], {
12027
+ '--terminal-scroll': scroll_pos
12028
+ });
12029
+ }, { once: true });
12023
12030
self.focus();
12024
12031
} else {
12025
12032
clip.blur();
12536
12543
ret = settings.touchscroll(event, delta, self);
12537
12544
}
12538
12545
css(self[0], {
12539
- '--terminal-scroll': self .prop('scrollTop')
12546
+ '--terminal-scroll': scroller .prop('scrollTop')
12540
12547
});
12541
12548
if (ret === true) {
12542
12549
return;
You can’t perform that action at this time.
0 commit comments