PageSourceSearch

https://pictorx.com/js/geometry/mouse.js?v=CD3MLz2Pj1kd8Ex8ah2E8mi4BtTx8QdYbP4BLo4393w

js pictorx.com collected 2026-10-09 04:44:42 UTC 1,088 bytes, 51 lines download raw bytes

1/**
2 * Canvas pointer handlers — implementation on {@link PointerController} (`app.pointer`).
3 * These functions delegate for backward compatibility.
4 */
5
6function _pointer() {
7    return app.pointer ?? null;
8}
9
10function handleMouseWheel(e) {
11    _pointer()?.handleWheel(e);
12}
13
14function handleMouseDblclick(e) {
15    _pointer()?.handleDblclick(e);
16}
17
18function handleMouseDown(e, double = false) {
19    _pointer()?.handleDown(e, double);
20}
21
22function handleMouseMove(e) {
23    _pointer()?.handleMove(e);
24}
25
26function handleMouseUp(e) {
27    _pointer()?.handleUp(e);
28}
29
30function handleMouseEnter() {
31    _pointer()?.handleEnter();
32}
33
34function handleMouseLeave() {
35    _pointer()?.handleLeave();
36}
37
38function canTransform() {
39    const p = _pointer();
40    return p ? p.canTransform() : false;
41}
42
43function canTransformOrCrop() {
44    const p = _pointer();
45    return p ? p.canTransformOrCrop() : false;
46}
47
48function canPan() {
49    const p = _pointer();
50    return p ? p.canPan() : (currentTool == TOOL_PAN && (maxScrollX > 0 || maxScrollY > 0));
51}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.