Giter VIP home page Giter VIP logo

Comments (4)

tomkp avatar tomkp commented on May 30, 2024

Hi - can you supply some more information on this? I'm happy to accept pull requests....

from react-split-pane.

Radivarig avatar Radivarig commented on May 30, 2024

Text of elements wrapped in SplitPane is not selectable.

from react-split-pane.

apostololeg avatar apostololeg commented on May 30, 2024

Hey, guys!
Why we need to set user-select: text by default ?
I want to manage it manually.

from react-split-pane.

stephenrs avatar stephenrs commented on May 30, 2024

This one caught my eye in the list of issues, because I think I experienced the issue that is referred to on this thread...

Each of my panes contains elements/widgets that may be drag-and-dropped. When an item that is being dragged crosses over another item, both items enter the "selected" state, getting highlighted in blue (in Chrome). Not great for user experience.

It's important to note that this was not happening before I added react-split-pane to my project. The drag-and-drop was already working fine without anything getting selected. I then added react-split-pane to separate my app into two separate drag-and-drop areas, and the selection problem appeared.

I fixed it by adding the following CSS to the container element of my draggable items:

.draggable-item-container {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
}

...but it would be nice if this wasn't necessary when using react-split-pane.

from react-split-pane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.