fix(core): if selection key code is true prevent pan on drag on left mouse btn (#1670)
* fix(core): if selection key code is true prevent pan on drag on left mouse btn Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(changeset): add Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * fix(tests): correct viewport drag tests Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --------- Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+2
@@ -8,6 +8,7 @@ describe('Viewport drag / zoom', () => {
|
||||
beforeEach(() => {
|
||||
cy.vueFlow({
|
||||
nodes,
|
||||
fitViewOnInit: false,
|
||||
})
|
||||
})
|
||||
|
||||
@@ -27,6 +28,7 @@ describe('Viewport drag / zoom', () => {
|
||||
await cy.tryAssertion(() => {
|
||||
cy.transformationPane()
|
||||
.should('exist')
|
||||
.should('not.have.css', 'transform', 'matrix(1, 0, 0, 1, 0, 0)')
|
||||
.should(
|
||||
'have.css',
|
||||
'transform',
|
||||
Reference in New Issue
Block a user