-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Fix issue #2306 (Recent projects close arrow fail to close without mouse move) #2590
Conversation
this change seems to fix the issue but i couldn't find out why |
It seems a simple change in the checkHovers() functions also fixes the problem: $(".recent-folder-link", this).triggerHandler("mouseenter"); This works: $(this).triggerHandler("mouseenter"); Instead of all links just trigger mouseenter on the current li |
@jbalsas whats your opinion? |
Hi @WebsiteDeveloper. I'm also still puzzled by this... my intuition is that somehow if the element doesn't detect the mouseover, jquery won't trigger the click event (it actually doesn't seem to even trigger mousedown), but I haven't been able to reproduce it anywhere else so far... I've tried your solution and if I switch the line in |
@jbalsas in my version it works fine with my change what version of brackets are you using? |
I've tested it on this branch merged with master, and alone just in master and in both cases the close icon won't show. @WebsiteDeveloper Maybe I didn't get your suggestion right. As you say, If we could get it to work, I'd rather have something like what you suggest, as to me, it looks closer to the original intent of the code. |
Actually when i print out |
Sorry, but it's still not working for me. I also can't quite see why triggering it from the Could you maybe put your code together in a branch and push it to your github account so I could clone it and check it myself? |
i'll push a branch tomorrow |
@jbalsas |
@WebsiteDeveloper Thanks for putting the branch together. I just cloned it, but sadly it's still not working for me. Are you by any chance on Windows? I'm running on MacOS, so maybe this is somehow platform-specific... I don't have access to any windows machine to check it out so maybe someone else could pitch in... |
@jbalsas This looks good on Mac 10.8 and Win 7 @WebsiteDeveloper Thanks for reviewing this pull request. I also tried your solution, but it doesn't work on Mac 10.8. After removing the first item from list, the (x) icon is not displayed on the item that moves under the mouse (and click doesn't do anything), so it's actually worse. Merging. |
Fix issue #2306 (Recent projects close arrow fail to close without mouse move)
This is a possible fix for issue #2306. It changes
click
tomouseup
as the event to close an entry in the list of recent projects.It seems that jquery
click
event is not triggered if the mouse is already over the svg element when the old one is removed and the new one rendered, butmouseup
is.I'd say it has something to do with the lack of
mouseenter
, but I haven't been able to replicate it anywhere else outside this.