Skip to content

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

@dengxueru

Description

@dengxueru

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

Image

当缩放125的情况下

Image

当缩放150的情况下

Image

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

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions