Skip to content

Commit

Permalink
fix iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 7, 2024
1 parent d3bcec8 commit 56152d7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions js/jquery.terminal-src.js
Expand Up @@ -10630,11 +10630,11 @@
'--terminal-height': self.height(),
'--terminal-x': offset.left - self_offset.left,
'--terminal-y': offset.top - self_offset.top,
'--terminal-scroll': self.prop('scrollTop')
'--terminal-scroll': scroller.prop('scrollTop')
});
if (enabled) {
// Firefox won't reflow the cursor automatically, so
// hide it briefly then reshow it
// Firefox won't reflow the cursor automatically,
// so we hide it briefly then reshow it
cmd_cursor.hide();
self.oneTime(1, 'flush', function() {
cmd_cursor.show();
Expand Down Expand Up @@ -12020,6 +12020,13 @@
if (!move) {
if (!enabled) {
clip.focus();
window.visualViewport.addEventListener('resize', function(event) {

Check failure on line 12023 in js/jquery.terminal-src.js

View workflow job for this annotation

GitHub Actions / build

This line has a length of 102. Maximum allowed is 90

Check failure on line 12023 in js/jquery.terminal-src.js

View workflow job for this annotation

GitHub Actions / build

'event' is defined but never used
self.scroll_to_bottom();
var scroll_pos = scroller.prop('scrollTop');
css(self[0], {
'--terminal-scroll': scroll_pos
});
}, { once: true });

Check failure on line 12029 in js/jquery.terminal-src.js

View workflow job for this annotation

GitHub Actions / build

There should be no space after '{'

Check failure on line 12029 in js/jquery.terminal-src.js

View workflow job for this annotation

GitHub Actions / build

There should be no space before '}'
self.focus();
} else {
clip.blur();
Expand Down Expand Up @@ -12536,7 +12543,7 @@
ret = settings.touchscroll(event, delta, self);
}
css(self[0], {
'--terminal-scroll': self.prop('scrollTop')
'--terminal-scroll': scroller.prop('scrollTop')
});
if (ret === true) {
return;
Expand Down

0 comments on commit 56152d7

Please sign in to comment.