koneck 2.87.0 → 2.87.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-client.d.ts","sourceRoot":"","sources":["../../src/web/ui-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"ui-client.d.ts","sourceRoot":"","sources":["../../src/web/ui-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,IAAI,MAAM,CA80LrC"}
|
package/dist/web/ui-client.js
CHANGED
|
@@ -4499,25 +4499,6 @@ function drawPreview(data) {
|
|
|
4499
4499
|
img.tabIndex = 0;
|
|
4500
4500
|
img.onkeydown = (ev) => { void pageKey(ev); };
|
|
4501
4501
|
img.onblur = () => { void flushTyping(); };
|
|
4502
|
-
/*
|
|
4503
|
-
* The wheel scrolls the page, not the panel around it.
|
|
4504
|
-
*
|
|
4505
|
-
* There was no wheel handler at all: turning the wheel over a page scrolled the panel it sat in,
|
|
4506
|
-
* or nothing, and the only way down a page was the scroll buttons. Accumulated and sent as one
|
|
4507
|
-
* movement per burst, because a scroll gesture is fifty wheel events and fifty round trips is a
|
|
4508
|
-
* page that lurches instead of scrolling.
|
|
4509
|
-
*/
|
|
4510
|
-
img.onwheel = (ev) => {
|
|
4511
|
-
ev.preventDefault();
|
|
4512
|
-
scrolling.by += ev.deltaY;
|
|
4513
|
-
if (scrolling.timer) return;
|
|
4514
|
-
scrolling.timer = setTimeout(() => {
|
|
4515
|
-
const by = Math.round(scrolling.by);
|
|
4516
|
-
scrolling.by = 0;
|
|
4517
|
-
scrolling.timer = null;
|
|
4518
|
-
if (by !== 0) void browserDo({ action: 'scroll', by: by });
|
|
4519
|
-
}, SCROLL_BATCH_MS);
|
|
4520
|
-
};
|
|
4521
4502
|
|
|
4522
4503
|
// The picture is 1280 wide whatever it is displayed at, so a click has to be scaled back into
|
|
4523
4504
|
// page coordinates or it lands somewhere else entirely.
|
|
@@ -4555,6 +4536,34 @@ function drawPreview(data) {
|
|
|
4555
4536
|
host.appendChild(row);
|
|
4556
4537
|
}
|
|
4557
4538
|
|
|
4539
|
+
/*
|
|
4540
|
+
* The wheel scrolls the page, from anywhere in the panel.
|
|
4541
|
+
*
|
|
4542
|
+
* It was attached to the picture itself, so it worked only while the cursor sat exactly on it —
|
|
4543
|
+
* and a picture is centred with space around it and a hint underneath, which is where a cursor
|
|
4544
|
+
* usually is. Measured: over the image the page scrolls; eight pixels to its left, or twenty below
|
|
4545
|
+
* it, nothing happens at all. Reported as the page not being scrollable, which from where the
|
|
4546
|
+
* person was pointing it was not.
|
|
4547
|
+
*
|
|
4548
|
+
* On the container instead, wired once. That also survives the redraw after each scroll — the
|
|
4549
|
+
* picture is replaced every time a new one arrives, and a handler on it went with it.
|
|
4550
|
+
*
|
|
4551
|
+
* Accumulated and sent as one movement per burst, because a scroll gesture is fifty wheel events
|
|
4552
|
+
* and fifty round trips is a page that lurches rather than scrolls.
|
|
4553
|
+
*/
|
|
4554
|
+
$('pvbody').addEventListener('wheel', (ev) => {
|
|
4555
|
+
if (!document.querySelector('#pvbody .pvshot')) return; // nothing open to scroll
|
|
4556
|
+
ev.preventDefault();
|
|
4557
|
+
scrolling.by += ev.deltaY;
|
|
4558
|
+
if (scrolling.timer) return;
|
|
4559
|
+
scrolling.timer = setTimeout(() => {
|
|
4560
|
+
const by = Math.round(scrolling.by);
|
|
4561
|
+
scrolling.by = 0;
|
|
4562
|
+
scrolling.timer = null;
|
|
4563
|
+
if (by !== 0) void browserDo({ action: 'scroll', by: by });
|
|
4564
|
+
}, SCROLL_BATCH_MS);
|
|
4565
|
+
}, { passive: false });
|
|
4566
|
+
|
|
4558
4567
|
async function browserDo(body) {
|
|
4559
4568
|
$('pvinfo').textContent = 'working…';
|
|
4560
4569
|
let out;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-client.js","sourceRoot":"","sources":["../../src/web/ui-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,YAAY;IAC1B,OAAO,MAAM,CAAC,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"ui-client.js","sourceRoot":"","sources":["../../src/web/ui-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,YAAY;IAC1B,OAAO,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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