Coder Social home page Coder Social logo

Find better dragscroll script about gdbrowser HOT 4 CLOSED

gdcolon avatar gdcolon commented on July 28, 2024
Find better dragscroll script

from gdbrowser.

Comments (4)

dimtpap avatar dimtpap commented on July 28, 2024

People can make those stuff for you with the issues so it's not bad. Not me though, not very experienced with JS :P

from gdbrowser.

101arrowz avatar 101arrowz commented on July 28, 2024

I could do this but you need to tell me at what angle relative to vertical that dragging should not be considered scrolling but rather selecting text.

If it's 90 degrees, then you have to be dragging perfectly horizontally to select text. If it's 45 degrees then you have to be dragging more horizontally than vertically to select text, and more vertically than horizontally to scroll. I'd recommend 35-40 degrees but it's your choice.

HOWEVER: I'm pretty sure that there's a nochilddrag class you can attach to dragscroll elements to allow selection of child elements. I'm pretty sure that's easier than creating a new script from scratch :P

from gdbrowser.

GDColon avatar GDColon commented on July 28, 2024

I tried nochilddrag, no luck.
Also, I guess 40-ish degrees works, but would it be possible to just cancel the dragscrolling if you're mousing over text? (mousing over = cursor changes to 𝙸)

from gdbrowser.

101arrowz avatar 101arrowz commented on July 28, 2024

I tried to do some testing with a custom dragscroll.js but I can't seem to find a way to get it to detect when it's highlighting text because jQuery (I think the lazy loading plugin in specific; not certain tho) puts in spaces and random other text in random nodes, so I can never tell if the node someone mouses over is actually text or not. This weird hidden behavior is one of the reasons I suggested against jQuery, but I'll try to find a workaround.

from gdbrowser.

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.