Mini Program gets the height from the top of view and then wx.pageScrollTo, but the distance is not right.

    query.select(".comment-list-wrp").boundingClientRect()
    query.exec( (res)=> {
      //res myText 
      const windowH = wx.getSystemInfoSync().windowHeight
      const ratio = wx.getSystemInfoSync().pixelRatio
      console.log(windowH, ratio)
      console.log(res);
      //
      console.log(res[0].height);
      this.setData({
        commentTop: res[0].top
      })
    })

clipboard.png

but what happens if the element scrolls scrollTop to the set commentTop but the distance is not correct

Aug.07,2021
Menu