xi-editor / xi-mac

The xi-editor mac frontend.
Apache License 2.0
3.02k stars 147 forks source link

Fix scrollers not appearing for certain settings #477

Closed nangtrongvuon closed 4 years ago

nangtrongvuon commented 4 years ago

Summary

On certain setups, scrollers were not appearing on scroll due to XiClipView's scroll(to: NSPoint) declaration overriding the Apple's scroller management code. This commit fixes that by calling super.scroll(to: ) to access the scroller management, and calling setBoundsOrigin from EditViewController.

Note that this is a bit of a hacky fix - the real fix would probably involve figuring out how to make XiTextPlane responsively render on notched mouse scroll, perhaps implementing prepareContentInRect, though I'm not quite sure if it would do the job. Kapture 2019-09-23 at 22 38 43

Related Issues

Closes #476

Review Checklist