@poncho-ai/browser 0.6.23 → 0.6.24
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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +10 -0
- package/dist/index.js +6 -1
- package/package.json +1 -1
- package/src/session.ts +5 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/browser@0.6.
|
|
2
|
+
> @poncho-ai/browser@0.6.24 build /home/runner/work/poncho-ai/poncho-ai/packages/browser
|
|
3
3
|
> tsup src/index.ts --format esm --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
[34mCLI[39m tsup v8.5.1
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mESM[39m Build start
|
|
10
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
11
|
-
[32mESM[39m ⚡️ Build success in
|
|
10
|
+
[32mESM[39m [1mdist/index.js [22m[32m47.13 KB[39m
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 67ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 5077ms
|
|
14
14
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m13.69 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @poncho-ai/browser
|
|
2
2
|
|
|
3
|
+
## 0.6.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`51859a9`](https://github.com/cesr/poncho-ai/commit/51859a94041ade5ec9a9892165099d610c3bc363) Thanks [@cesr](https://github.com/cesr)! - Dispatch wheel/scroll events with no pressed button. `injectScroll` went through
|
|
8
|
+
`injectMouse`, which defaults the button to `"left"`, so a `mouseWheel` was sent
|
|
9
|
+
_with the left button_ — Chrome treated scrolling as a left-button drag and could
|
|
10
|
+
leave the button stuck "down", after which clicks stopped registering. Send
|
|
11
|
+
`button: "none"` for wheel events.
|
|
12
|
+
|
|
3
13
|
## 0.6.23
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -936,7 +936,12 @@ var BrowserSession = class {
|
|
|
936
936
|
x: event.x ?? 0,
|
|
937
937
|
y: event.y ?? 0,
|
|
938
938
|
deltaX: event.deltaX,
|
|
939
|
-
deltaY: event.deltaY
|
|
939
|
+
deltaY: event.deltaY,
|
|
940
|
+
// A wheel event must NOT carry a pressed button — injectMouse otherwise
|
|
941
|
+
// defaults to "left", which makes Chrome treat the scroll as a
|
|
942
|
+
// left-button drag and can leave the button stuck "down", so subsequent
|
|
943
|
+
// clicks stop registering.
|
|
944
|
+
button: "none"
|
|
940
945
|
});
|
|
941
946
|
}
|
|
942
947
|
// -----------------------------------------------------------------------
|
package/package.json
CHANGED
package/src/session.ts
CHANGED
|
@@ -903,6 +903,11 @@ export class BrowserSession {
|
|
|
903
903
|
y: event.y ?? 0,
|
|
904
904
|
deltaX: event.deltaX,
|
|
905
905
|
deltaY: event.deltaY,
|
|
906
|
+
// A wheel event must NOT carry a pressed button — injectMouse otherwise
|
|
907
|
+
// defaults to "left", which makes Chrome treat the scroll as a
|
|
908
|
+
// left-button drag and can leave the button stuck "down", so subsequent
|
|
909
|
+
// clicks stop registering.
|
|
910
|
+
button: "none",
|
|
906
911
|
});
|
|
907
912
|
}
|
|
908
913
|
|