fix(touch): For viewport interactions use onPointerDown. (#4572)
This commit is contained in:
1 parent
ee9593a7e0
commit
6160718fd2
2 files changed
+6
-9
No files matched your search
@@ -18,14 +18,9 @@ describe('OHIF Double Click', () => {
|
||||
|
||||
// For whatever reason, with Cypress tests, we have to activate the
|
||||
// viewport we are double clicking first.
|
||||
cy.get('[data-cy="viewport-pane"]')
|
||||
.eq(i)
|
||||
.trigger('mousedown', 'center', {
|
||||
force: true,
|
||||
})
|
||||
.trigger('mouseup', 'center', {
|
||||
force: true,
|
||||
});
|
||||
cy.get('[data-cy="viewport-pane"]').eq(i).trigger('click', 'center', {
|
||||
force: true,
|
||||
});
|
||||
|
||||
// Wait for the viewport to be 'active'.
|
||||
// TODO Is there a better way to do this?
|
||||
|
||||
Reference in new issue
Block a user