为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Cursor changes via is not applied in firefox

  • 6 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 chetankumard

more options

Hi, I have been working on this issue from a while now. When the cursor is changed from one style to other via firefox simply does not render it. It works fine in opera and chrome . Please help &.grab {

         cursor: move; /* fallback if grab cursor is unsupported */
         cursor: grab;
         // cursor: -moz-grab;
         // cursor: -webkit-grab;
      }
      
      /* (Optional) Apply a "closed-hand" cursor during drag operation. */
      &.grabbing:active {
         cursor: move; /* fallback if grab cursor is unsupported */
         cursor: grabbing;
         // cursor: -moz-grabbing;
         // cursor: -webkit-grabbing;
      }
Hi, I have been working on this issue from a while now. When the cursor is changed from one style to other via firefox simply does not render it. It works fine in opera and chrome . Please help &.grab { cursor: move; /* fallback if grab cursor is unsupported */ cursor: grab; // cursor: -moz-grab; // cursor: -webkit-grab; } /* (Optional) Apply a "closed-hand" cursor during drag operation. */ &.grabbing:active { cursor: move; /* fallback if grab cursor is unsupported */ cursor: grabbing; // cursor: -moz-grabbing; // cursor: -webkit-grabbing; }

所有回复 (6)

more options

Did you check the Inspector?

See also:

Can you post a link to a publicly accessible page (i.e. no authentication or signing on required)?

more options

Why is there an & character here:

chetankumard said

Hi, I have been working on this issue from a while now. When the cursor is changed from one style to other via firefox simply does not render it. It works fine in opera and chrome . Please help
&.grab {
          cursor: move; /* fallback if grab cursor is unsupported */
          cursor: grab;
          // cursor: -moz-grab;
          // cursor: -webkit-grab;
       }
       
       /* (Optional) Apply a "closed-hand" cursor during drag operation. */
       &.grabbing:active {
          cursor: move; /* fallback if grab cursor is unsupported */
          cursor: grabbing;
          // cursor: -moz-grabbing;
          // cursor: -webkit-grabbing;
       }
more options

Yes I did and it doesn't reveal much. Unfortunately Its a private app. Can I post you a gif image for reference?

more options

Just ignore the & symbol. I haven't posted you the entire css. .grab and . grabbing:active are the css classes involved in applying the grab and grabbing cursor. Thing is when I apply grab cursor or grabbing cursor Firefox has no issue rendering it. But when the class name changes dynamically the cursor does not change from grab to grabbing.

more options

It's obvious. That we can't help you without understanding how your page works. If you cannot provide a link to the real app, create a demo, for example, using JSFiddle, CodePen, etc.

more options

@jscher2000, I will post a link to jsfiddle or codepen shortly.