-
Notifications
You must be signed in to change notification settings - Fork 882
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
Issues with right-click on block #3905
Comments
I briefly see the larger menu but it goes away when the smaller menu appears. What browser are you using? |
Probably, The reason for this problem is conflicting event listeners. I guess there is a code that checks whether the |
Version 120.0.6099.224 (Official Build) built on Debian 11.8, running on Debian 11.7 (64-bit) |
@pikurasa , Is it resolved, Should I take to this work on? |
@akshayw1 Yes I am working on it. |
You don't need to ask for permission. If the issue is not resolved you can raise a PR. |
@apsinghdev I am working on it. |
Great, it's good to hear that you are working on it. I am just letting him know the flow we use. |
anyone working on this? |
Please test it first. IRRC it may have been fixed... |
haha this doesn't happeen locally for me actually, I am trying to fix this by adding a separate case of just not rendering the bigger menu, feel like that would be better. Edit 1 : I have added some code, if someone is able to reproduce the issue, would they like to check the code and see if it works or not? |
Hello, I have been trying to reproduce this and confirm its presence. However not as the main issue but rather for me as mentioned by @/walterbender the larger menu is disappearing after a while. I also confirms that it "appears" like this issue isn't present running the local For this, I may try to also test it on a local server and see if it makes any difference there. sugarlabs-musicblocks-double-menu3905.mp4NOTE: I also tried to test in the video if this issue is only with the blocks and not with other "clickable" objects. like the turtle or other menus and components etc but found that it is only present while right clicking the blocks NOTE 2: I observed that unlike the screenshot, for me both the menus are concentric circles and not overlapping as shown.
I will now check using the debugger about what lines of code are responsible. It is helpful to know from the maintainers about the context as @/apsinghdev has mentioned. |
An update: Root Cause: checking // We might be able to check which button was clicked.
if ("nativeEvent" in event) {
if ("button" in event.nativeEvent && event.nativeEvent.button == 2) {
that.blocks.stageClick = true;
docById("wheelDiv").style.display = "none";
that.blocks.activeBlock = thisBlock;
piemenuBlockContext(that);
return; Potential Solutions:
@apsinghdev Any help is appreciated here. Thanks! |
You can either right click on a block or on the canvas. There are two different menus. But both menus appear when you right click on the canvas. |
hi @walterbender @pikurasa I tryed in Edge and Brave but not able to produce the issue |
On FF on Fedora when you right click on a block, the canvas menu appears, then the block menu, then the canvas menu disappears. |
Right now, on https://musicblocks.sugarlabs.org/, if you right-click on a block you get two menus. You should only get one.
The text was updated successfully, but these errors were encountered: