X
Tryk her for at gå til webstedets mobilversion.
Scheduled maintenance: Wednesday, April 1, between 3:30pm and 5:30pm UTC. This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn’t solve your issue and you want to ask a question, we have our support community waiting to help you at @firefox on Twitter

Supportforum

Pressing ctrl key on the keyboard prevents mouseUp events from happening

Skrevet

We are using react and listening to mouse events (up, down, move...). While dragging with the mouse (So mouse down and then mouse move) if we press the control key on a Mac keyboard and then release the mouse, the "mouseUp" event is not fired.

We are using react and listening to mouse events (up, down, move...). While dragging with the mouse (So mouse down and then mouse move) if we press the control key on a Mac keyboard and then release the mouse, the "mouseUp" event is not fired.

Valgt løsning

I'm sorry this is no bug from Firefox, the issue was that we were only listening to the left mouse button (so mouseEvent.button = 0) while once we press ctrl key, the mouseUp event will get a button code 2. I'm closing this issue

Læs dette svar i sammenhæng 0
Citér

Yderligere systemdetaljer

Installerede plugins

  • Shockwave Flash 32.0 r0

Program

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0

Yderligere information

Luk
Eve
  • Top 25 Contributor
  • Administrator
58 løsninger 366 svar

Nyttigt svar

This is probably worth submitting to bugzilla as a bug, I didn't see anything like it when I looked:

https://bugzilla.mozilla.org

This is probably worth submitting to bugzilla as a bug, I didn't see anything like it when I looked: https://bugzilla.mozilla.org
Fandt du dette nyttigt? 1
Citér

Spørgsmålsstiller

Thank you I just submitted it there https://bugzilla.mozilla.org/show_bug.cgi?id=1614951

Thank you I just submitted it there https://bugzilla.mozilla.org/show_bug.cgi?id=1614951
Fandt du dette nyttigt?
Citér
cor-el
  • Top 10 Contributor
  • Moderator
17851 løsninger 161566 svar

You could provide more detail in the bug report as you didn't mention using React or possibly add a test page to the bug report. Someone needs to be able to reproduce this issue.

I'm curious why you are pressing the Ctrl key.

Is the Ctrl key the only modifier key that gives problems ?

You could provide more detail in the bug report as you didn't mention using React or possibly add a test page to the bug report. Someone needs to be able to reproduce this issue. I'm curious why you are pressing the Ctrl key. Is the Ctrl key the only modifier key that gives problems ?
Fandt du dette nyttigt?
Citér

Spørgsmålsstiller

Yes it's only the ctrl key that causes this. We are using the press on this key to modify the drag behaviour. Example: moving an element in the canvas with the drag would snap to some certain grid, and if you press the ctrl key while doing that then we skip the snapping. I cannot really provide a test page but you're right I will mention that we're using react.

Yes it's only the ctrl key that causes this. We are using the press on this key to modify the drag behaviour. Example: moving an element in the canvas with the drag would snap to some certain grid, and if you press the ctrl key while doing that then we skip the snapping. I cannot really provide a test page but you're right I will mention that we're using react.
Fandt du dette nyttigt?
Citér

Valgt løsning

I'm sorry this is no bug from Firefox, the issue was that we were only listening to the left mouse button (so mouseEvent.button = 0) while once we press ctrl key, the mouseUp event will get a button code 2. I'm closing this issue

I'm sorry this is no bug from Firefox, the issue was that we were only listening to the left mouse button (so mouseEvent.button = 0) while once we press ctrl key, the mouseUp event will get a button code 2. I'm closing this issue
Fandt du dette nyttigt?
Citér
Stil et spørgsmål

Du skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.