Commit graph

88 commits

Author SHA1 Message Date
Richard Davey
72959cf953 Core.Config.domPointerEvents is a new config property set via dom: { pointerEvents } within the Game Config that allows you to set the pointerEvents css attribute on the DOM Element container. 2021-03-30 10:23:45 +01:00
PizZaKatZe
9891223a81 Do not set pointer-events property on DOM elements container
Fixes #5594.

If I understand correctly, #5504 tried to achieve the property is left
at its default value. The fact that the DOM container also defines it
was probably overlooked. :-)
2021-03-21 20:08:32 +01:00
Richard Davey
1c2a79ac51 The Scale Managers GetScreenOrientation function will now check for window.orientation first, because iOS mobile browsers have an incomplete implementation of the Screen API, forcing us to use the window value as a priority. This means the Scale Manager will now emit orientationchange events correctly on iOS. Fix #4361 #4914 2020-09-11 15:22:53 +01:00
Richard Davey
da3f9b22c3 Exposed on the main API namespace 2020-09-01 18:38:57 +01:00
MerganThePirate
d60c9a33d8
Fixed bug from issue #5191 2020-06-15 08:25:26 -07:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Richard Davey
e5f93738ca
Merge pull request #4807 from jcyuan/master
fix TS issues and fix the condition to check video support.
2019-11-19 10:49:09 +00:00
Richard Davey
cc6cec5c83 Added in forceSetTimeout fps value (#4179) 2019-11-18 16:23:29 +00:00
J.C
67ea9c627e fix bug: CONST does not have PORTRAIT and LANDSCAPE member, they are in CONST.ORIENTATION object. 2019-10-23 17:48:43 +08:00
Richard Davey
cf0b872636 CreateDOMContainer will now use div.style.cssText to set the inline styles of the container, so it now works on IE11. Fix #4674 2019-07-24 15:16:08 +01:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
faa72add9b Removed ComputedSize component as we need the values read-only.
Fixed renderer for DOM Elements inside of Containers, or outside, or in a scaled canvas.
2019-05-08 00:26:54 +01:00
Richard Davey
950fc79e2e Took DOM Element out of experimental and hooked to the Scale Manager 2019-04-09 23:28:40 +01:00
Richard Davey
53c63fa190 Removed all references to Cocoon. 2019-02-15 10:38:57 +00:00
Richard Davey
27004061f5 Fixed jsdocs 2019-02-12 12:04:35 +00:00
Richard Davey
87ef5a14cf DOM.GetTarget is a new helper function that will return a reference to a DOM Element based on the given string or node. 2019-01-31 11:10:40 +00:00
Richard Davey
dbd3745b4a The AddToDOM method has had the overflowHidden argument removed. The DOM element the canvas is inserted into no longer has overflow: hidden applied to its style. If you wish to have this, please add it directly via CSS. 2019-01-30 22:46:29 +00:00
Richard Davey
cb7b335d7f Moved ScaleManager to its own namespace (Phaser.Scale) and out of DOM 2019-01-29 15:42:27 +00:00
Richard Davey
da8ac37192 resize can now be called at any point, moved centering to a new more solid method, added zoom support with scale mode none and more. 2019-01-29 15:18:47 +00:00
Richard Davey
0be5bd23a0 Added MAX_ZOOM const 2019-01-29 15:18:12 +00:00
Richard Davey
a9db477718 Moved to dom folder 2019-01-29 15:17:52 +00:00
Richard Davey
d380c3ac69 Virtually finished Scale Manager jsdocs and tidying up. 2019-01-28 17:12:28 +00:00
Richard Davey
78b22ee617
Merge pull request #4316 from jcyuan/master
doc fix for TimerEvent and BMFontText & a minor bug in updateBounds
2019-01-28 13:47:13 +00:00
Richard Davey
4ac6553b2c Final updates to full screen target handling. 2019-01-28 11:44:04 +00:00
Richard Davey
147a0a0e98 ScaleManager.resize now calls resize on all the Size components 2019-01-25 17:29:49 +00:00
J.C
b5476a8b2d minor fix for updateBounds in some environment which does not support DOM well, if pageOffsetXY / clientXY returns undefined, input won't work. 2019-01-25 10:59:42 +08:00
Richard Davey
51500004fa Removed un-needed DOM modules 2019-01-23 22:12:48 +00:00
Richard Davey
901df292d5 Added TODO list and swapped fs parent 2019-01-23 17:09:41 +00:00
Richard Davey
42dd60ef6d Added Scale Manager events 2019-01-23 17:03:48 +00:00
Richard Davey
45d9820f14 Added all jsdoc headers and swapped to using full events 2019-01-23 17:03:39 +00:00
Richard Davey
8e781636f2 Added toggleFullscreen method 2019-01-23 15:52:10 +00:00
Richard Davey
c8ad0279d2 Full Screen API working properly (tested Chrome, FF and Safari so far) 2019-01-23 00:12:53 +00:00
Richard Davey
fbc5eb7046 Starting fullscreen support 2019-01-22 16:57:03 +00:00
Richard Davey
a9043f142b SM0 skip 2019-01-22 15:45:53 +00:00
Richard Davey
1eccff1e3b Fixed jsdoc links and markdown bullet lists 2019-01-18 15:20:56 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
Richard Davey
0e2e059546 Updated todo 2019-01-15 14:37:53 +00:00
Richard Davey
aa3b80371b Should be envelop, not envelope :) 2019-01-12 12:36:21 +00:00
Richard Davey
661b920dda Fixed parent style assignment 2019-01-12 00:51:54 +00:00
Richard Davey
2e05cab998 Added setZoom method. 2019-01-11 19:16:35 +00:00
Richard Davey
bf942f66d1 Fixed RESIZE update handling 2019-01-11 18:25:47 +00:00
Richard Davey
9e74913c74 Added input handling, resize events, orientation locks and more. 2019-01-11 18:00:32 +00:00
Richard Davey
21342dc6e9 Now uses consts 2019-01-11 18:00:02 +00:00
Richard Davey
ab3d8aaf2a Added orientation consts 2019-01-11 17:59:52 +00:00
Richard Davey
814932b9f7 Added centering constants 2019-01-11 15:58:06 +00:00
Richard Davey
711180012c Recoded orientation check to avoid use of VisualBounds 2019-01-11 12:12:43 +00:00
Richard Davey
98d0ae62a4 Moved iOS GetInnerHeight to its own function 2019-01-11 12:12:30 +00:00
Richard Davey
728fb01343 Correctly using zoom and resolution across all scale modes. 2019-01-10 13:43:33 +00:00
Richard Davey
aec555705f Testing difference between w/h and scale 2019-01-10 00:16:06 +00:00
Richard Davey
d690b70216 Working the Size component magic into the Scale Manager. 2019-01-09 17:14:00 +00:00