Skip to content

Conversation

@ThePlastic
Copy link
Contributor

No description provided.

@ThePlastic
Copy link
Contributor Author

related to this:
#16

@ThePlastic ThePlastic mentioned this pull request Apr 29, 2017
"dependencies": {
"element-resize-detector": "^1.1.10",
"interact.js": "^1.2.8"
"interact.js": "git://github.com/taye/interact.js.git#master"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using an unreleased interact.js version? That doesn't seem like a good idea...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, but they are a bit slow on developing, that feature was already ready months ago and I waited for them to publish on npm as I needed it for my project. Unfortunately, it has not been published yet (they have released version 1.3.0alpha which is in the unstable branch and is not available through package.json). So I decided to implement it through the master branch. Feel free to not commit my changes, as soon as the new version of the interactjs library will be published you just have to edit your package.json

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, if they are that slow I will review this PR and merge it when I have some free time.

Copy link
Contributor Author

@ThePlastic ThePlastic May 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or if you like you can put
"interactjs": "^1.3.0-alpha.1"
as a dependency in your package.json but you have to require it from GridItem.vue like this:
var interact = require("interactjs/dist/interact.js");
and it works like a charm :)

@gmsa gmsa merged commit d38c4f7 into jbaysolutions:master Aug 16, 2017
@timstermatic
Copy link

How do you specify a drag handle, say I only want to be able to drag a GridItem by a specific area?

@gmsa
Copy link
Contributor

gmsa commented Jun 14, 2018

Check out this example: https://jbaysolutions.github.io/vue-grid-layout/examples/04-allow-ignore.html
You can view the source and css to check how it's done.

@timstermatic
Copy link

@gmsa that's perfect. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants