fixed not to listen to ViewTreeObserver events when the view is not hardware accelerated