This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, viewport-fit=cover"> | |
| <script> | |
| setInterval( | |
| function() { | |
| // this value will not be correct until you rotate your screen to landscape and back to portrait | |
| document.write("window.height === " + window.innerHeight + "<br />") | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| patch ({state, getters, commit, dispatch}, doc) { | |
| const store = this | |
| let response | |
| // check that the payload exists | |
| if (doc) { | |
| const id = (getters.collectionMode) ? getId(doc) : getters.docModeId, | |
| value = (getters.collectionMode) ? getValueFromPayloadPiece(doc) : doc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Work around for https://github.com/electron/electron/issues/611 | |
| * This snippet will check if the cursor has left the window, and trigger | |
| * mouse events accordingly. It even works with -webkit-app-region areas, | |
| * which usually don't send any mouse events, so it's pretty cool. You | |
| * can see the result in this gif: http://s214903023.onlinehome.fr/divers/fix.gif | |
| * Help is welcome for improvement, for example to remove the dependency to | |
| * jQuery. | |
| * | |
| * Caveats:it triggers too many events. For example when the mouse |