Coder Social home page Coder Social logo

Comments (8)

marijnh avatar marijnh commented on May 16, 2024

It does on Webkit, Opera, and Firefox. Since you didn't even specify which browser you tested with, I'm going to close this until further notice.

from codemirror5.

NV avatar NV commented on May 16, 2024

It doesn't in all tested browsers (Safari 5.0.3, Opera 11 and Firefox 4 beta 10 pre on Mac OS X 10.6).

from codemirror5.

marijnh avatar marijnh commented on May 16, 2024

Well, it does for me. Please describe your test case in more detail. When I visit http://codemirror.net/jstest.html and double-click any of the words in the editor, they are selected.

from codemirror5.

NV avatar NV commented on May 16, 2024

I'm talking about CodeMirror 2. This is why I created an issue here. Text selection in CodeMirror 0.92 works well for me.

from codemirror5.

marijnh avatar marijnh commented on May 16, 2024

Ugh, I didn't pay attention. Yeah, double-click select is definitely broken in CM2. Adding to my list.

from codemirror5.

marijnh avatar marijnh commented on May 16, 2024

This was implemented in 0995478

from codemirror5.

graphnode avatar graphnode commented on May 16, 2024

Still doesn't work correctly, sometimes it does select the word, other times it selects the first line or jumps to the beginning of the first line. (Edit: It seems this happens when double clicking between the characters. Weird.)

I debugged the code and it seems it sometimes fires the double click event (and works correctly) and sometimes it doesn't. I think the event is going to the wrong element.

from codemirror5.

marijnh avatar marijnh commented on May 16, 2024

Heh, this was a bizarre corner case where the mouse event ended up on the absolutely positioned cursor node, and my code, which tried to ensure it only handled events on the text (not, for example, on the line-number gutter), got confused by that. Should be fixed by 3153be8 , let me know if you find more problems.

from codemirror5.

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.