-
Notifications
You must be signed in to change notification settings - Fork 786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Dragging/Snapping then Removing/Appending elements #343
Comments
Hello rastapopolous, I'm glad you found my thing useful! It looks like you're using a fairly old version of interact.js. Try to upgrade to the I'm not totally clear on your issues. Can you make a small demo or give me access to the game? My email address is to the left of my Github profile |
Hi Taye, |
Hi Taye, |
Hi Taye, |
Hi Taye, The other part of the solution was to removeAttribute data-x and data-y attributes, and set transform to '' before append. Too many incompatible things happening together at the same time as the dropenter I think. Thanks Taye. |
While I understand your frustration at having to deal with an issue for so long, I don't think it's fair to call out the developer for not helping with your issue. If this were a bug with the software, I'm sure the priority would be raised, but even if that were the case, the developer isn't required to do anything about it. There are many people entering the Gitter page and asking for help, some get it, others eventually work out the problem themselves In regards to the letting the community know about extended leaves etc. This project seems to be active when it needs to be, there are many other projects which are left unfinished for months and while it's a shame, you just have to move on and find a solution, though this wouldn't be one of those projects. I'd recommend bringing your issues which aren't related to bugs or feature requests to StackOverflow or Gitter as the users there are much more likely to have time to help with your problems. You'll also be given more time to explain your issue without having to condense it down. I'd also like to say that with this particular issue, what you're doing is somewhat complex and it may be easier for you to find the solution yourself rather than asking someone else to get completely into the mindset if your project. The developer makes this project that can fit into so many scenarios which they wouldn't have ever dreamed of when starting the project, therefore just because they're the authors doesn't mean that they can instantly figure out your issue. They too have to research to get up to where you are, which isn't necessarily a fair thing to ask from someone who has already put so many hours into the project. Tldr: I get the frustration too, we've all been there. You were very civil in your response too so there's no problem there. I'd just recommend adjusting your expectations. Tech support that a developer gives is a nice bonus, rather than an entitlement. |
Thanks for your feedback Joeao. While you're correct that it would be inappropriate to call the developer out on a lack of assistance, my communication was based on expectations set by the developer themselves; the project presents as far more highly polished than most on Github. I initially expected no support, was then led by the developer to provide extensive documentation of my particular situation so that they could assist me on this. Accordingly I planned based on their offer. The one mistake was probably calling them out publicly on this issue. Really this was more of a personal issue between me and Taye. Accordingly, I've gotten in touch with them privately and amended my comment so that it pertains only to closing the issue. |
This project is a personal exercise in software development, Web/graphic design, product branding and technical documentation. I do this because I enjoy it and I don't understand why a very similar "drag and drop" solution hadn't been developed to this extent before. I don't do it to make money and I hardly do it to make people happy. I'm just scratching an itch. When this itch goes away or anything more important comes up, I change focus. Your problem, like the majority of issues opened for this repo, was that you took a wrong aproach or weren't aware of how the module and the event listeners you used operated. I offered my help because I thought that I'd have time for it. It turned out that I wouldn't have time but I still think it's better to have offered with the honest intention of providing useful support than to have closed the issue as simply being your problem and not mine. I didn't expect you to significantly reduce your own efforts to solve your problem and I'm sorry if you felt your time was wasted by documenting your issue. The LICENSE file clearly states a lack of warranty. If my work seems too highly polished to be that of one person working for free who makes no promises and who feels entitled to disappear for a few months, that's your problem not mine. It's nice to help people and I greatly appreciate it when people help me, but I'm not here to foster a community. I just want to scratch this pesky itch. |
Taye, If that's no longer the case and you dont have time or interest in helping Post a notice on your project. Take the 30 seconds to write back to No there's no warranty. But its the decent thing to do. On Fri, Apr 8, 2016 at 4:19 PM, Taye A [email protected] wrote:
|
Hi Taye,
A question about dragging/snapping and removing/appending children in interact.js 1.2.6 (and a couple small related questions). I started using it about 2 mos ago, it’s a really great library. Thanks for putting it out there!
My project is a board game, standard setup, xy axis of 20x15 boardsquare divs. For players, tray divs with six traysquare divs each to hold player game tiles. Tiles are dealt at start to each tray as children of traysquares.
GAME BASICS:
3 PROBLEMS:
UPDATE: 1/21: reformatted remove/append into 3 lines:
thisTile = event.relatedTarget;
thisTile.parentNode.removeChild(thisTile);
event.target.appendChild(thisTile);
No errors thrown, DragDropSnap works as expected, .play class is added, but elements are not appending, maybe because after the .move theyre gone before they can .append(?)
UPDATE 1/23: removed all snap functionality from draggable{} snap: definitions and .dragenter snap target reference. Without snapping, using 3 lines for remove/append above dragging is less crazy/flyaway than before, appending works, as does adding '.play' class. However, under this scenario .on dragleave remove playclass no longer works...
Thanks for your help Taye. I think this is pretty clear, esp w the image attached, but I could also post to jsfiddle if needed
THE INTERACT CODE:
The text was updated successfully, but these errors were encountered: