properly fix build and keep offscreen gestures alive except SCANCODE

Change-Id: If70f39ada37a2a395a4b0dea627733abfff4b9a4