Comments (4)
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.
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.
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.
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)
- The API, again HOT 1
- How do I comment? HOT 7
- Deploying to Heroku HOT 1
- Texture pack support for the Icon Kit HOT 1
- npm i won't work
- Unable to host GDBrowser with Replit HOT 1
- Don't you dare removing the api HOT 4
- OK so how do i run it on heroku ? HOT 8
- add support for subdomains HOT 6
- Please add a `CONTRIBUTING.md` HOT 6
- `typeof` output gets coerced to bool HOT 1
- No-Op ambiguous capitalization typo HOT 2
- Downloading additional level info on levels older than 2.1 breaks.
- Error: Cannot find module 'express' HOT 4
- Message decryption HOT 2
- Way to download levels from official server HOT 6
- Cloudflare Pages support: I need help HOT 4
- Can't stop jumping!!! Achievement has wrong description.
- I can't run the server locally HOT 1
- Can i have it HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdbrowser.