taro ScrollView 中 scrollIntoViewAlignment = 'center' , 赋值 scrollIntoView 之后 item 不会滚到屏幕中间

jjhzyzn0  于 4个月前  发布在  其他
关注(0)|答案(3)|浏览(46)

相关平台

微信小程序

小程序基础库: 2.32.2
使用框架: React

复现步骤

期望结果

设置了 scrollIntoViewAlignment = 'center' 之后,item 滚动到屏幕中间

实际结果

设置了 scrollIntoViewAlignment = 'center' 之后,item 却滚动到屏幕 start

环境信息

👽 Taro v3.6.8

  Taro CLI 3.6.8 environment info:
    System:
      OS: macOS 10.14.5
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 16.19.1 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 8.19.3 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.8 => 3.6.8 
      @tarojs/components: 3.6.8 => 3.6.8
      @tarojs/helper: 3.6.8 => 3.6.8
      @tarojs/mini-runner:3.6.8 => 3.6.8
      @tarojs/plugin-framework-react: 3.6.8 => 3.6.8
      @tarojs/plugin-platform-weapp: 3.6.8 => 3.6.8
      @tarojs/react: 3.6.8 => 3.6.8
      @tarojs/router: 3.6.8 => 3.6.8
      @tarojs/runtime: 3.6.8=>3.6.8
      @tarojs/shared:3.6.8 => 3.6.8
      @tarojs/taro: 3.6.8 => 3.6.8
      @tarojs/webpack-runner: 3.6.8 => 3.6.8
      @tarojs/webpack5-runner: 3.6.8=> 3.6.8
      babel-preset-taro: 3.6.8 => 3.6.8
      eslint-config-taro: 3.6.8=> 3.6.8
      react: ^18.2.0 => 18.2.0
6qfn3psc

6qfn3psc1#

@smoothdvd@guotie@Psli 这个问题我可以提PR吗?

y1aodyip

y1aodyip2#

这个库真的弱智,他妈的一堆bug

klh5stk1

klh5stk13#

转换的时候这个属性都失效了

相关问题