vue-cursor-fx icon indicating copy to clipboard operation
vue-cursor-fx copied to clipboard

Update cursor position on page scroll

Open eliawk opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe. When you scroll the page the cursor don't update its position

Describe the solution you'd like When you scroll the page the mouse follow the scrolling - like the normal cursor does

eliawk avatar Oct 31 '21 10:10 eliawk

I needed exactly the same feature and actually its kinda easy just 2 line to modify so I made a fork (its not fully tested on every browser) Feel free to try it

You just need to add a position: fixed style to the Element.

https://github.com/aesdotjs/vue-cursor-fx

aesdotjs avatar Nov 04 '21 18:11 aesdotjs

@aesdotjs thanks! maybe @LuXDAmore could add this feature to this repository to avoid a fork just for this.

eliawk avatar Nov 09 '21 19:11 eliawk

@aesdotjs fantastic! But i've seen your code, where is the position: fixed? At which Element are you applying it?

If you already had a fork, you can easely do a PR 😄

I will update the package for sure after this @eliawk 😎

LuXDAmore avatar Nov 15 '21 16:11 LuXDAmore

While the fix it's not available, you can simply do it from the parent component, like: .parent-component ::v-deep .vue-cursor-fx { position: fixed; }

LuXDAmore avatar Nov 15 '21 16:11 LuXDAmore