jsgotty 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -3,6 +3,10 @@
3
3
  [中文 README](README.md)
4
4
 
5
5
  ## News
6
+ ### 2026/08/16
7
+ - Fixed the disconnected-screen `Reconnect` button not being clickable in WebGL mode.
8
+ - The `Reconnect` UI now stays above the WebGL canvas and receives mouse and touch events correctly; Kitty image handling no longer intercepts right-click / long-press for entering a reconnect token or PID.
9
+
6
10
  ### 2026/07/03 - [1.1.0]
7
11
  - Unicode 11 from upstream
8
12
  - WebGL support by `--webgl` and query args
package/README.md CHANGED
@@ -3,6 +3,10 @@
3
3
  [English README](README.en.md)
4
4
 
5
5
  ## News
6
+ ### 2026/08/16
7
+ - 修正 WebGL 模式下斷線畫面的 `Reconnect` 按鈕無法點擊。
8
+ - `Reconnect` 介面現在會正確位於 WebGL canvas 上方並接收滑鼠與觸控事件;右鍵/長按輸入 reconnect token 或 PID 也不會被 Kitty 圖片事件攔截。
9
+
6
10
  ### 2026/07/03 - [1.1.0]
7
11
  - Unicode 11 from upstream
8
12
  - WebGL support by `--webgl` & query args
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsgotty",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Share your terminal as a web application: A JavaScript rewrite of GoTTY",
5
5
  "bin": {
6
6
  "jsgotty": "./gotty.js"
@@ -17,6 +17,8 @@
17
17
  user-select: none;
18
18
  transition: opacity 180ms ease-in;
19
19
  text-align: center;
20
+ z-index: 10;
21
+ pointer-events: auto;
20
22
  }
21
23
 
22
24
  .xterm-overlay-button {
@@ -29,4 +31,5 @@
29
31
  color: white;
30
32
  font: inherit;
31
33
  cursor: pointer;
34
+ pointer-events: auto;
32
35
  }
@@ -763,6 +763,9 @@
763
763
  if (state.contextMenu && state.contextMenu.root.contains(event.target)) {
764
764
  return;
765
765
  }
766
+ if (event.target instanceof Element && event.target.closest(".xterm-overlay")) {
767
+ return;
768
+ }
766
769
  const key = placementAtPoint(event.clientX, event.clientY);
767
770
  if (!key) {
768
771
  return;