dsh-desktop-windows 0.2.6 → 0.2.7
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/package.json +1 -1
- package/src/screenshot.html +6 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-desktop-windows",
|
|
3
3
|
"productName": "DeepSeek Harness Desktop",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.7",
|
|
5
5
|
"description": "DeepSeek Harness 桌面版(Windows)· Electron desktop shell for DeepSeek Harness (dsh web) — 双击即用,无需终端 / double-click to run the harness in a standalone window",
|
|
6
6
|
"main": "src/main.js",
|
|
7
7
|
"license": "MIT",
|
package/src/screenshot.html
CHANGED
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
|
|
8
8
|
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; cursor: crosshair; }
|
|
9
9
|
#stage { position: fixed; inset: 0; }
|
|
10
|
-
#stage img {
|
|
10
|
+
#stage img {
|
|
11
|
+
width: 100%; height: 100%; object-fit: fill; display: block;
|
|
12
|
+
-webkit-user-drag: none; user-drag: none; draggable: false;
|
|
13
|
+
pointer-events: none; /* 避免 img 拦截鼠标事件/触发拖拽 */
|
|
14
|
+
}
|
|
11
15
|
/* 遮罩:全屏半透明黑 + clip-path 挖洞(GPU 加速,每帧只改字符串) */
|
|
12
16
|
#mask {
|
|
13
17
|
position: fixed; inset: 0; z-index: 2; pointer-events: none;
|
|
@@ -166,6 +170,7 @@
|
|
|
166
170
|
|
|
167
171
|
document.addEventListener('mousedown', function (e) {
|
|
168
172
|
if (e.button !== 0) return
|
|
173
|
+
e.preventDefault() // 阻止 img 拖拽等默认行为,确保 mousemove 正常触发
|
|
169
174
|
if (mode === 'draw') {
|
|
170
175
|
drag = { type: 'draw', x0: e.clientX, y0: e.clientY }
|
|
171
176
|
return
|