Capturing mouse position outside of browser window?

前端 未结 4 1409
-上瘾入骨i
-上瘾入骨i 2021-01-22 14:57

One major barrier to creating immersive experiences in the browser (using WebGL and similar) is the set of limitations placed on mouse control.

For instance a first per

4条回答
  •  Happy的楠姐
    2021-01-22 15:06

    A hint :

     function thumb_mouse_down(e) {
                           e.target.setCapture();
                           return false;
                       }
    
     function doc_mouse_up(e) {
                            e.target.releaseCapture();
    }
    

提交回复
热议问题