0

I have an application where we use touch devices to work with models. 1 of our features is connected with multiselections. I didn't find the way how to use it on tapEvents. To solve it i used workaround and overrode a handler for tap (skip it) and dispatched click instead. But in the latest versions (~7.51) click handler in forge started checking isMobileDevice by User-agent and skipped further steps.

So the question is: is there is any possibility to have multiselection on touch devices like with click by this way?

this.adskViewer.viewer.setCanvasClickBehavior({
  click: {
    onObject: [isMultiple ? 'selectToggle' : 'selectOnly'],
    offObject: ['deselectAll'],
  },
});

}

1 Answer 1

0

You can create an extension to override the selection behaviour.

You can subscribe to the Autodesk.Viewing.SELECTION_CHANGED_EVENT, keep track of previous selected items and add them to the current selection while the selection is not empty.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.