Scratch-gui: Implement long-press for context menus on touch devices

Created on 27 Jan 2018  路  5Comments  路  Source: LLK/scratch-gui

Expected Behavior

In order to support tablets completely, we can't rely on "right-click". Tablets don't have mouse.

Actual Behavior

It relies on it.

Steps to Reproduce

Right-Click. (maybe a menu is shown)

Operating System and Browser

Firefox 58 and Windows7 HomePremium SP1 64bit

feature touch

Most helpful comment

A lot of things would have to be changed for this, but it is a good point. However, I can't think of many ways that you could implement a right-click style menu while keeping everything as simple.

All 5 comments

A lot of things would have to be changed for this, but it is a good point. However, I can't think of many ways that you could implement a right-click style menu while keeping everything as simple.

Double-click instead (or tap)?

FYI scratch-blocks uses long-press for right-click behaviour on touch devices.

Here are the different context menus I know about:

  • blocks (works, except on edge. Tracking here: https://github.com/LLK/scratch-gui/issues/3026)
  • workspace (works)
  • sprite tile (doesn't work)

Closing since we have long press anywhere we have a custom context menu

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericrosenbaum picture ericrosenbaum  路  4Comments

ericrosenbaum picture ericrosenbaum  路  4Comments

davidaylaian picture davidaylaian  路  4Comments

thisandagain picture thisandagain  路  3Comments

cyx2015s picture cyx2015s  路  4Comments