question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: allow for separate drag handle

See original GitHub issue

Environments

  • Framework name: React
  • Framework version: 16.10.2
  • Moveable Component version: 0.19.1
  • Testable Address(optional): N/A

Description

As per title, would be great if the drag handle can be a separate element, like:

<div class="panel"> // this can accept other things like resize, rotate etc.. 
    <div class="header">HEADER</div> // ... but this is the only element which can accept drag
    <div class="content">CONTENT</div>
</div>

Visually, something like this image

I’m quite sure a lot of people will appreciate this, as I believe many of us use this library to build some sort of multi panel / tab / window application on the web.

Thank you!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
iprasadgcommented, Apr 4, 2020

Yes seperate drag handle will be very helpful and user friendly. #148

2reactions
istevencommented, May 3, 2020

Hi @daybrush,

Thank you! I will try in the next few days.

To use it in the React version, is it like this?

render() {
    return (
        <Moveable
            target={document.querySelector(".target")}
            dragTarget={document.querySelector(".otherTarget")}
            ...
            ...
        />
    )
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request: Mobile drag handles. Option to enable ...
I'm running the wekan snap on Kubuntu 18.04 When I create a card the little compass icon on the right side of the...
Read more >
Feature Request: Shift-Drag Handle Constrained to Italic Angle
A simple but incredibly useful feature request. Particularly for script typefaces (but I'm sure other applications).
Read more >
Selecting Different Layouts / Feature Requests / BoldGrid
I would like to see a control that would allow me to select different layouts ... the Section drag handle to now switch...
Read more >
A Feature Request Tool for SaaS Apps - Sleekplan
Track all your feature request in one simple tool, let user submit ... Use a clear roadmap in Kanban style, drag and drop...
Read more >
Manage issues - GitLab Docs
Hover over the list item row to make the drag icon ( ) visible. Select and hold the drag icon. Drag the row...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found