Explain why you need to be able to distinguish between app and device interaction when interpreting touch events.?

What will be an ideal response?


While users can interact via touch with an app, they also use touch to perform browser and device interactions, known asgestures, for activities such as scrolling the page and viewing device notifications. For instance, in addition to executing code in response to a touchmove event that you specify, the device's operating system may also interpret thetouchmoveevent as the user interacting with the interface to scroll the page. As you can imagine, users would find such unpredictable results frustrating. To ensure that the operating system interface does not respond to events generated when users interact with an app, you can use thepreventDefault()method. By adding the preventDefault()method within event handler code, you prevent touch actions on specific elements from also triggering interface gestures.

Computer Science & Information Technology

You might also like to view...

A(n) __________ works with one source statement at a time, reading it, translating it to machine-level, executing the resulting binary instructions, and then moving on to the next source statement.

a. compiler b. non-procedural language c. interpreter d. none of the above

Computer Science & Information Technology

You cannot ________ Access reports, macros, or modules to an Excel workbook

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following is NOT a stage of a multimedia project?

a. Testing b. Planning and costing c. Designing and production d. Marketing e. Delivery

Computer Science & Information Technology

If a criterion involves a text field, the value must be enclosed in quotation marks.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology