// host is obscured. For a full description of why this is the case,
// see http://people.apache.org/~tvolkert/tests/scrolling/
ScrollPane scrollPane = (ScrollPane)getComponent();
ApplicationContext.DisplayHost displayHost = scrollPane.getDisplay().getDisplayHost();
ApplicationContext applicationContext = displayHost.getApplicationContext();
optimizeScrolling = (displayHost.getScale() == 1
&& (applicationContext instanceof DesktopApplicationContext
|| (displayHost.getPeer().canDetermineObscurity()
&& !displayHost.getPeer().isObscured())));