cytoscape / cytoscape-explore

Network visualization webapp.
MIT License
13 stars 4 forks source link

Add custom scroll bar support #108

Closed maxkfranz closed 2 years ago

maxkfranz commented 2 years ago

General information

Associated issues:

Checklist

Author:

Reviewers:

Notes

If the user has set the preference to show inline scrollbars all the time in the Mac Preferences app, then we show an inline scrollbar styled to match our app.

If the user has the default preference (e.g. iOS scrollbars, modern scrollbars on Mac, GNOME, etc.), then the native scrollbars are used since modern scrollbars already look fine -- and native scrollbars are generally preferable where possible, in my opinion.

When the user has the default system preference for modern scrollbars:

https://user-images.githubusercontent.com/989043/143481052-bbc06780-476b-415e-b452-faf1e88a386d.mp4

When the user has 'always show scrollbars' as the system preference:

https://user-images.githubusercontent.com/989043/143481133-f5ca5870-b830-4130-ba01-786603d088d0.mp4