-
Hi there,
I notice that the behaviour scrolling up seems different from scrolling down.
Often when scrolling down, there's a threshold of pre-loaded items below the container so that there's fewer…
-
scroll(e) {
this.scrollOldTop = e.detail.scrollTop
},
cityindex(id) {
const query = uni.createSelectorQuery().in(this)
setTimeout(() => {
query.select('#city-letter-' + (id === '#' ? …
-
Ideally the window will work like normal and stay in the same position when editing elements.
I've tracked it down to this line. Whats happening is that tabindex of 0 on the containing span makes f…
-
I can't find the heading subtype for the omnibar, nor exposed API to define a new one.
```javascript
// Open Omnibar to jump to heading
mapkey(
"oh",
"#8Jump to Heading",
function () {
…
-
博客并没有内置`回到顶部`按钮功能,所以自己搞一个简易的。
> 纯js实现,通用任何网页
> [!NOTE]
> 获取页面离顶部的距离,用顶部距离除以x,计算每次滚动距离,让滚动速度由快到慢。interval计时器循环。
> Math.ceil() “向上取整”, 小数部分直接舍去,并向正数部分进1
> 宽度限制在1000以上,给PC用,~~手机它也用不着啊~~
``…
-
Issue scrolling to #: Browser/App does not scroll to `id=`
as detailed here:
https://github.com/EventedMind/iron-router/commit/65b844eb0d988d93b1ac8a5bf54966d4dd2f0c46#commitcomment-9236380
Workaro…
-
There is problem when get contianer position at componentDidUpdate:
When container scroll out of visual range then update position, scroll back, we can't call handleMouseMove correctly
Why not …
-
It would be nice to have an animation option for the scrolling methods, to achieve the same effect as the following:
```
$('.row').click(function() {
$('.nano').animate({
scrollTop: (
…
-
On a regular Drive page update, it's scrolling up to the top of the page. Normally that would be desired, but on some Drive links I want to maintain the current scroll position. I tried looking for a …
-
源码中有这么一段
$.scrollTo = function(scrollTop, duration, callback) {
duration = duration || 1000;
var scroll = function(duration) {
if (duration