Janne Kurkinen

Results 91 comments of Janne Kurkinen

@pikax here's basically my stripped-down version. scrollTop.value is giving 0 and scrollTo method is not doing anything? ```vue import { defineComponent, ref, Ref } from '@vue/composition-api'; import { useOnScroll }...

Logging of `titleRef.value` shows that the element is found.

Using `scrollTopTo(150);` quirks up my layout. It seems plausible that as I'm using simplebar-vue scrollbar library and these contents are within such a scrollable container, that it somehow doesn't along...

@pikax got it working using vue-scrollTo library. Needed to use `.simplebar-content-wrapper` as the container, so should be able to get it work with your composable using that container. > you...

@pikax thanks, smooth scrolling works now. However I'm still having problem scrolling to the ref'fed element, as `offsetTop` is giving me value like 20 which is relative to it's own...

@pikax how to define scroll container if titleRef is given as the param for useOnScroll() instead of scroll container?

@pikax I mean I got this working only by specifying the scroll container by passing it to `useOnScroll`. If `scrollIntoView` working by passing the element to which to scroll to...

@pikax can `scrollIntoView` method do a smooth scrolling instead of jumping immediately to the position, or is it working wrong with my setup?

I have this problem as well when trying to optimize an SVG that has the world map in vector format, and only part of it is shown by masking... Any...

I was thinking the same...how is it?