chrome sets cursor to text while dragging, why?

前端 未结 8 1231
灰色年华
灰色年华 2020-11-28 09:10

My application has many drag and drop features. While dragging I want the cursor to change to some grab cursor. Internet Explorer and Firefox work fine for this, but Chrome

8条回答
  •  北海茫月
    2020-11-28 09:36

    I solved a same issue by making the Elements not selectable, and adding an active pseudo class on the draged elements:

    * {
        -webkit-user-select: none; 
    }
    
    .your-class:active {
        cursor: crosshair;
    }
    

提交回复
热议问题