@aurigax-ai/ghostty-web 0.3.5 → 0.3.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.
@@ -881,6 +881,8 @@ export class InputHandler {
881
881
 
882
882
  const button = event.button;
883
883
 
884
+ if (!(this.mouseButtonsPressed & (1 << button))) return;
885
+
884
886
  // Clear pressed button
885
887
  this.mouseButtonsPressed &= ~(1 << button);
886
888
 
package/lib/terminal.ts CHANGED
@@ -1258,7 +1258,7 @@ export class Terminal implements ITerminalCore {
1258
1258
  const absDistance = Math.abs(distance);
1259
1259
 
1260
1260
  // If very close, snap to target
1261
- if (absDistance < 0.01) {
1261
+ if (absDistance < 0.01 || duration <= 0) {
1262
1262
  this.viewportY = this.targetViewportY;
1263
1263
  this.fireScroll();
1264
1264
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurigax-ai/ghostty-web",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Ghostty's terminal engine (libghostty-vt) in the browser: WebAssembly build, an xterm.js-shaped API and WebGL and canvas renderers. A hard fork of coder/ghostty-web.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.ts",