-
Notifications
You must be signed in to change notification settings - Fork 117
Replace all pointerdown events with mousedown events #997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Changed all 'pointerdown' event listeners to 'mousedown' - Updated corresponding event handler method names (onPointerDown -> onMouseDown) - Updated private property names (_onPointDown -> _onMouseDown) for consistency - Fixed TypeScript event parameter types (PointerEvent -> MouseEvent) - Updated related pointer events (pointermove, pointerup, pointercancel) to mouse events (mousemove, mouseup, mouseleave) in splitview - Maintained full functionality while switching from pointer events to mouse events 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 705e077:
|
- Updated all package names to use @samelie/ scope - Versioned as 4.2.4-mousedown.1 to indicate custom fork - Updated internal dependencies to reference scoped packages - Added GitHub Action for automatic publishing on feature branch pushes - Verified core package builds successfully with mousedown changes Ready for NPM publishing under @samelie scope 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Removed workflows that could accidentally publish to original NPM packages: - publish.yml (would publish to dockview-core, dockview, dockview-vue, dockview-react) - deploy-docs.yml (would deploy to original documentation site) Retained safe workflows: - codeql-analysis.yml (security scanning) - main.yml (CI/testing) - publish-mousedown.yml (our custom @samelie scope publisher) This prevents accidental overwrites of the original dockview packages and ensures our fork only publishes to @samelie scope. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Add corepack enable step to install yarn - Fixes CI and publishing workflow failures 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Yarn was failing due to mixed lock files - Keep only yarn.lock for consistent dependency resolution 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- yarn was failing with EISDIR errors in CI - Switch to npm install for more reliable dependency resolution - Add package-lock.json for npm consistency 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Fixed dockview-react dependency to use scoped @samelie/dockview - Successfully built all packages: dockview-core, dockview, dockview-vue, dockview-react - All packages now compile and bundle properly with mousedown event changes - Ready for NPM publishing to @samelie scope 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
CEP environments automatically prevent default on all events, causing dockview to early exit from functions when checking defaultPrevented. This removes all defaultPrevented checks to allow proper functionality in CEP environments while maintaining core event handling. Changes: - Removed defaultPrevented checks from all event handlers - Updated test to use mouseDown instead of pointerDown for consistency - Disabled prepublishOnly hooks to allow direct publishing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Extract package name from scoped name to avoid @samelie/ directories - Fix all rollup configs in dockview-core, dockview, and dockview-react - Maintain full scoped name in license banners - Ensures output matches package.json entry point expectations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Updated all package versions to 4.2.4-mousedown.3 - Fixed build system issues (lerna npm client, rollup scoped directories, TSX parsing) - Published all packages to NPM with mousedown tag - Contains all defaultPrevented fixes for CEP environment compatibility 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Replace dockview-core imports with @samelie/dockview-core - Update package versions to 4.2.4-mousedown.3 - Fix dependency references in package.json files 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Can you explain why you wanted to use mouse events rather than pointer events? |
Hi matteo this is a fantastic library. Thank you. If my tool works out then I can definitely sponsor you. I'm developing a tool Inside of adobe CEP ( custom panel inside of Adobe products are a modified chromium ) I discovered after many painful experiments that adobe CEP blocks pointer events but allows mouse events ... CEP also does some things to the events where event.defaultPrevented is true therefore blocking a lot of the tab selection I'm not sure what to do with all this code that Claude wrote |
🤖 Generated with Claude Code