FunFetched Posted October 13, 2017 Share Posted October 13, 2017 Hi, guys. I'm having some cursor-alignment issues with the latest Playground editor. I suspect is has something to do with the new navigator pane, but I can't be certain. I've attached an image showing where my mouse cursor is, vs. where the text cursor ends up when I click. If I were to type at this moment, characters would be inserted immediately after the 'V' (where the mouse is), with the text cursor lagging behind. The problem is more profound the closer you get to the right-side of the window. I'm using Chrome 61 on a MacBook Pro. This doesn't appear to be a problem in Firefox or Safari. Edit: Speaking of Firefox! I just noticed that using the arrow keys to manipulate a FreeCamera causes the entire window to scroll slightly. Don't forget that event.preventDefault()! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 13, 2017 Share Posted October 13, 2017 I suspect a cache issue. Clear your cache and try again I've just tested and it works here Quote Link to comment Share on other sites More sharing options...
FunFetched Posted October 14, 2017 Author Share Posted October 14, 2017 6 hours ago, Deltakosh said: I suspect a cache issue. Clear your cache and try again I've just tested and it works here Odd. Just cleared everything, restarted Chrome, and the problem persists. It's really strange; seems like a rendering issue. The X coordinate of the cursor seems like it's scaled to match the window minus the nav pane, while the rest of the element isn't taking it into account. Sometimes, it even winds up smack in the center of a letter. Even Google Canary exhibits the same problem. I'm starting to wonder if this isn't a bug in Chrome. Quote Link to comment Share on other sites More sharing options...
sable Posted October 16, 2017 Share Posted October 16, 2017 I'm getting the same issue in Chrome on a macbook pro, but works fine in ff. Works fine in everything on a Windows machine, so could be a webkit bug in macOS? Also, a local build of the playground from a week or two back works fine, so some change since then has triggered this. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 16, 2017 Share Posted October 16, 2017 I recently moved to a new version of the editor. Can you make sure that there is no .monaco rules in the css file? Quote Link to comment Share on other sites More sharing options...
FunFetched Posted October 16, 2017 Author Share Posted October 16, 2017 I'm seeing a monaco-colors class in there with a whole bunch of .monaco rules, if that's what you're referring to. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 16, 2017 Share Posted October 16, 2017 You should not :0 https://github.com/BabylonJS/Babylon.js/blob/master/Playground/css/index.css Quote Link to comment Share on other sites More sharing options...
sable Posted October 17, 2017 Share Posted October 17, 2017 All the monaco css rules are contained in the editor.main.css file from the monaco-editor npm package. Quote Link to comment Share on other sites More sharing options...
Hersir Posted October 17, 2017 Share Posted October 17, 2017 Have same issue on macOS chrome, works fine in safari Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 17, 2017 Share Posted October 17, 2017 Oh I meant the main css file (not the monaco one) http://playground.babylonjs.com/css/index.css Quote Link to comment Share on other sites More sharing options...
gzlock Posted November 18, 2017 Share Posted November 18, 2017 Mac: 10.13.1 Chrome: 62.0.3202.94 Chrome had this problem +1 And hope to set up a switch to control the mini map to display or not Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 19, 2017 Share Posted November 19, 2017 Hi @gzlock, this PR adds a toggle to display/hide the minimap : https://github.com/BabylonJS/Babylon.js/pull/3185 gzlock 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 20, 2017 Share Posted November 20, 2017 Everything is live. Can you tell us if this is better now? Quote Link to comment Share on other sites More sharing options...
gzlock Posted November 21, 2017 Share Posted November 21, 2017 14 hours ago, Deltakosh said: Everything is live. Can you tell us if this is better now? Yep, perfect! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.