Skip to content

windows 放大 125% 150% 175% 会导致process 无法是1 #302

Description

@dengxueru

大致找了一下原因
当缩放100%的情况下

Image

当缩放125的情况下

Image

当缩放150的情况下

Image

华为的一款电脑 支持175 200 225 250 的放大,但是共同点 scrollTop 和 scrollHeight - clientHeight 相减的值不超过1px,所以可以增加判断Math.abs(scrollTop - diff) <= 1 process 直接返回 1

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions