Disable elastic scrolling in CEF on Mac OS X

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Disable elastic scrolling in CEF on Mac OS X

Postby Fallen » Fri Oct 03, 2014 8:45 am

Is there an option to disable the elastic scroll effect in CEF for Mac? It's very easy to do inside native WebKit on Mac like below.

Code: Select all
NSScrollView *webScrollView = [[[[sender mainFrame] frameView] documentView] enclosingScrollView];
[webScrollView setVerticalScrollElasticity:NSScrollElasticityNone];
[webScrollView setHorizontalScrollElasticity:NSScrollElasticityNone];
Fallen
Techie
 
Posts: 39
Joined: Wed Jan 29, 2014 11:38 am

Re: Disable elastic scrolling in CEF on Mac OS X

Postby magreenblatt » Fri Oct 03, 2014 8:51 am

Set CEF_SPI_BUILD=1 environment variable, run cef_create_projects.sh, rebuild CEF.
magreenblatt
Site Admin
 
Posts: 12384
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 46 guests