3

I'm developing my web app with nodewebkit in fullscreen mode.
It has to be used with touchscreen monitor.

I've used CSS proprerty:

html * {
  cursor: none;
}

In nodewebkit's manifest seems that nothing usefull is provided to remove cursor..

Problem is that cursor disappears only when it is moved the first time.

How can I improve this behavior?

Luca Davanzo
  • 21,000
  • 15
  • 120
  • 146

2 Answers2

3

I've fixed the problem calling from script:

document.body.style.cursor = 'none';

But I can't understand why doesn't work from css.

Luca Davanzo
  • 21,000
  • 15
  • 120
  • 146
0

I think maybe you need to focus window at first to make the css hiding cursor work?!

I meet the same issue and then have gone with the following code.

var gui = require("nw.gui");
var win = gui.Window.get();
win.focus();
SanWu
  • 16
  • 1