Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.8.3
Name Modified Size InfoDownloads / Week
Parent folder
5.8.3_ Canvas Marquee Selection Viewport Clamping _ UI Bleed Prevention source code.tar.gz 2026-10-15 22.5 MB
5.8.3_ Canvas Marquee Selection Viewport Clamping _ UI Bleed Prevention source code.zip 2026-10-15 22.8 MB
README.md 2026-10-15 8.5 kB
OpenPublisher5-i386-windowsXP.exe 2026-10-15 56.5 MB
openpublisher5_amd64-windows-portable.exe 2026-10-15 183.2 MB
openpublisher5_amd64-windows.exe 2026-10-15 165.2 MB
openpublisher5_amd64-macos.dmg 2026-10-15 233.1 MB
openpublisher5_amd64-linux.run 2026-10-15 193.4 MB
openpublisher5_amd64-linux.rpm 2026-10-15 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-10-14 153.6 MB
openpublisher5_amd64-linux.deb 2026-10-14 156.2 MB
openpublisher5_amd64-linux.AppImage 2026-10-14 166.4 MB
openpublisher5_amd64-freebsd.pkg 2026-10-14 185.5 MB
Totals: 13 Items   1.8 GB 0

🚀 Summary

Version 5.8.3 eliminates canvas selection box leakage into the user interface when zoomed into publications. When dragging a multi-select marquee box, the selection boundary now remains strictly contained within the visible editable canvas viewport, preventing selection overlays from drawing across page preview sidebars, rulers, ribbon toolbars, and floating properties panels:

  1. Strict Viewport & Page Intersection Clamping: Solved the issue where zooming into a publication and drag-selecting caused the green/teal selection marquee to extend across the ribbon bar, ruler bars, page previews sidebar, status bar, and properties panes. The selection box is now dynamically clamped to the mathematical intersection of the document canvas (paper.getBoundingClientRect()) and the visible viewport (viewport.getBoundingClientRect()).
  2. Page Boundaries Preserved When Zoomed Out: When viewing full pages or working at low zoom levels, the selection box remains strictly locked to document page boundaries as intended, preventing the marquee from escaping into empty margins.
  3. Active Sidebar Occlusion Awareness: The marquee engine now detects open floating sidebars (including Picture Tools, Shadow Options, Accessibility Scanner, and Table Design) and dynamically clamps the right-hand boundary to the left edge of visible sidebar panels.
  4. Z-Index Layer Isolation: Lowered marquee overlay z-index from 9999 to 45 and applied box-sizing: border-box, ensuring selection graphics remain cleanly beneath interface panels, ribbons, rulers, and modal dialogs.
  5. Initial Hidden State & Drag Thresholding: Marquee containers now initialize in a hidden state (display: none) with zero dimensions until an active mouse drag begins. Mouseup element hit testing now enforces a minimum 3px drag threshold, preventing accidental multi-selection on simple background canvas clicks.
  6. Dark Mode Theming Support: Added dedicated dark mode CSS styling for #marquee-box, rendering high-contrast teal borders and translucent fills against dark canvas themes.
  7. Full Codebase Cache & Version Synchronization: Synchronized all 83 asset cachebusters in index.html to ?v=5.8.3, incremented the Service Worker cache namespace to open-publisher-v5-8-3, and updated all subsystem headers, logs, and dialog subtitles.

🔍 Architecture & Technical Implementation

1. Root Cause Analysis: Zoomed-In Marquee UI Overflow

  • The Issue: Previously, marquee drag coordinates were clamped solely against the physical paper container: clampedX = Math.max(paperRect.left, Math.min(e.clientX, paperRect.right)) clampedY = Math.max(paperRect.top, Math.min(e.clientY, paperRect.bottom))
  • The Failure: When the user is zoomed into the page (e.g. 150%, 200%, or 300%), #paper's bounding box expands far beyond the visible browser viewport. paperRect.top extends upwards behind the ribbon toolbar and horizontal ruler (e.g. -400px), paperRect.left extends behind the page preview sidebar and vertical ruler (e.g. -300px), and paperRect.bottom extends below the status bar.
  • Visual Artifacts: Because #marquee-box was injected into document.body as a position: fixed element with z-index: 9999, moving the cursor near or into interface toolbars caused the selection box to draw directly on top of the ribbon bars, rulers, page previews, and status bar.

2. Viewport Boundary Clamping & Active Sidebar Occlusion

  • Intersection Math: In canvas/interaction-mouse.js, extensions/smart-images.js, and extensions/system-patches.js, the drag engine now queries both paper.getBoundingClientRect() and viewport.getBoundingClientRect():
  • minX = viewRect ? Math.max(paperRect.left, viewRect.left) : paperRect.left;
  • maxX = viewRect ? Math.min(paperRect.right, viewRect.right) : paperRect.right;
  • minY = viewRect ? Math.max(paperRect.top, viewRect.top) : paperRect.top;
  • maxY = viewRect ? Math.min(paperRect.bottom, viewRect.bottom) : paperRect.bottom;
  • Sidebar Detection: Scans for active slide-out panels (.sidebar-panel.visible, #op-image-sidebar.visible, etc.). If a right sidebar is open, its left boundary clamps maxX, preventing marquee boxes from extending underneath or over slide-out panels.
  • Double Clamping: Clamps both the current cursor coordinate (clampedX, clampedY) and the drag origin anchor (startX, startY) to the valid [minX, maxX] and [minY, maxY] bounding interval.

3. Stacking Context & Style Normalization

  • Set box-sizing: border-box so the 1px border is included within computed dimensions.
  • Added explicit CSS rules in style.css for #marquee-box, including dark mode overrides for border colors and translucent fill opacity.
  • Maintained compatibility with extensions/ui-interactions.js, allowing real-time horizontal and vertical ruler tracking markers to mirror clamped marquee bounds without overflow.

📁 Files Modified in 5.8.3

File Changes
canvas/interaction-mouse.js Updated handleMouseDown to initialize #marquee-box with z-index: 45, box-sizing: border-box, and display: none. Implemented viewport and page intersection clamping in handleMouseMove. Added 3px drag threshold in handleMouseUp.
extensions/smart-images.js Implemented viewport and page intersection clamping in handleMouseMove for marquee multi-select mode.
extensions/system-patches.js Updated handleMouseDown to initialize #marquee-box with z-index: 45 and display: none. Implemented viewport, page, and sidebar intersection clamping in handleMouseMove.
style.css Added #marquee-box style definitions and body.dark-mode #marquee-box theming rules.
index.html Synchronized all 83 asset cachebusters to ?v=5.8.3.
sw.js Bumped Service Worker cache namespace to open-publisher-v5-8-3 and header to (v5.8.3).
extensions/pwa-install.js Bumped header to (v5.8.3) and Service Worker registration query to sw.js?v=5.8.3.
extensions/ui-interactions.js Bumped header comment, startup console log, and About dialog subtitle to v5.8.3.
extensions/legacy-fixes.js Bumped engine initialization console log to v5.8.3.
extensions/print-engine.js Bumped engine initialization console log to v5.8.3.
tools/proofing/spellcheck-engine.js Bumped proofing header comment to (v5.8.3).
ui/dashboard.js Updated template fetch cachebuster queries to ?v=5.8.3.
ui/sidebar-context.js Bumped sidebar context header comment to (v5.8.3).
ui/modals/card-sheet-modal.js Bumped card sheet modal header comment to (v5.8.3).
ui/modals/options-modal.js Bumped options modal header comment to (v5.8.3).

wrapper.html was not modified.


✅ v5.8.3 Verification Checklist

  • [x] Viewport Clamping While Zoomed In: Verified marquee selection box stops at viewport edges and does not bleed into the ribbon toolbar, horizontal/vertical rulers, or page preview sidebar.
  • [x] Page Locking While Zoomed Out: Verified marquee selection box remains locked to document page boundaries when viewing full pages or working at standard zoom levels.
  • [x] Sidebar Occlusion Detection: Verified visible floating sidebars on the right clamp maxX so marquee boxes do not overlap sidebars.
  • [x] Drag Origin Normalization: Verified start coordinates (startX, startY) are clamped to the valid canvas region.
  • [x] Hidden State on Initialization: Verified #marquee-box is created with display: none and only displays when active dragging occurs.
  • [x] Hit Testing Drag Threshold: Verified single background clicks do not trigger accidental multi-selection by enforcing a 3px drag threshold in handleMouseUp.
  • [x] Ruler Marker Synchronization: Verified ruler tracking markers in extensions/ui-interactions.js receive clamped coordinates from marqueeBox.getBoundingClientRect().
  • [x] Dark Mode Styling: Verified #marquee-box renders high-contrast teal styling in dark mode.
  • [x] Cache Invalidation & SW Versioning: Verified all 83 asset queries in index.html reference ?v=5.8.3, sw.js cache name is open-publisher-v5-8-3, and all subsystem logs and headers are updated.

🎉 Version 5.8.3 - Open Publisher

Source: README.md, updated 2026-10-15