IssueRaiser

Dragging tabs not possible by preventing default on mouse down on Header

Hi, [this line](https://github.com/zeit/hyper/blob/a7595c1a45bf584c9baee490e6c3bffc04732183/lib/components/header.js#L34) prevents drag&drop API from working on anything inside Header component (in my case, it's tabs). This is blocking https://github.com/patrik-piskay/hyperterm-tabs/issues/6 and it was working correctly until 0.8 (this release introduced the `ev.preventDefault()` line). Is there a better solution or at least a possibility to override the default `onMouseDown` handler? I am happy to submit a PR that will fix this, just want to discuss possible approaches. Thanks!

Posted by patrik-piskay on Oct 20, 2016, 2:25 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

reliability (Software)

Dragging tabs not possible by preventing default on mouse down on Header

patrik-piskayOct 20, 2016, 2:25 PM

Hi, [this line](https://github.com/zeit/hyper/blob/a7595c1a45bf584c9baee490e6c3bffc04732183/lib/components/header.js#L34) prevents drag&drop API from working on anything inside Header component (in my case, it's tabs). This is blocking https://github.com/patrik-piskay/hyperterm-tabs/issues/6 and it was working correctly until 0.8 (this release introduced the `ev.preventDefault()` line). Is there a better solution or at least a possibility to override the default `onMouseDown` handler? I am happy to submit a PR that will fix this, just want to discuss possible approaches. Thanks!

Comments (0)

No comments yet. Start the discussion.

Comment on this issue