TS7-Pro 7-inch Touch Screen
Limit the painting range of the Pencil.
Only when the Pencil enters the drawing area, can painting be allowed.
When the pen enters the toolbar, that is, when the y coordinate is less than or equal to -120, we need to call the pen up
function to stop painting.
204 Chapter 5. PROJECTS AND ACTIVITIES