How to disable scrolling in NSScrollView with enabled responsive scrolling

白昼怎懂夜的黑 提交于 2019-12-21 21:32:44

问题


I need to disable programmatically scrolling in NSSrollView with enabled responsive scrolling.

I try override isCompatibleWithResponsiveScrolling, then is possible to override scrollWheel and have enabled responsive scrolling but scrollWheel works different in that implementation. Is called only once, on start of scroll but I want to break scroll that is in progress.

It's possible to do this in different way that not need to override scrollWheel method?

来源:https://stackoverflow.com/questions/41853163/how-to-disable-scrolling-in-nsscrollview-with-enabled-responsive-scrolling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!