Re: [csswg-drafts] Setting the primary scrolling direction for a scroll container (#10060)

Further argument: Why is this feature necessary for CSS?

Although JavaScript developers are absolutely able to **programmatically** change the default action of a wheel event for vertical-writing pages, but they have to set the wheel event's `passive` option to `false`, in order to be able to call `preventDefault` to prevent the default action, and then write their own action code. Unfortunately, turning off `passive` mode results in a very big performance loss. Also, this couples style with event handling, making code hacky.

-- 
GitHub Notification of comment by Zhang-Junzhi
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10060#issuecomment-1991296228 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 12 March 2024 10:23:51 UTC