Skip to content

Commit

Permalink
Added newest way to lock screen, canvas no-aliasing bugfix for Androi…
Browse files Browse the repository at this point in the history
…d Firefox, Pointer capture bugfix
  • Loading branch information
jalbam committed Jan 18, 2024
1 parent 228144f commit 203c368
Show file tree
Hide file tree
Showing 483 changed files with 512 additions and 486 deletions.
1 change: 1 addition & 0 deletions CrossBrowdy/CrossBase/audiovisual/image/CB_Screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,7 @@ var CB_Screen = function() { return CB_Screen; };
{
if (typeof(screen) !== "undefined")
{
if (window.screen && window.screen.orientation && typeof(window.screen.orientation.lock) === "function") { return window.screen.orientation; }
var orientationObject = screen.orientation || screen.mozOrientation
|| screen.webkitOrientation || screen.oOrientation || screen.msOrientation
|| screen.khtmlOrientation || null;
Expand Down
10 changes: 5 additions & 5 deletions CrossBrowdy/CrossBase/audiovisual/image/canvas/CB_Canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,10 @@ CB_Canvas.prototype.disableAntiAliasing = function(performTranslate)
context.webkitImageSmoothingEnabled = false;
context.mozImageSmoothingEnabled = false;
context.imageSmoothingEnabled = false;


//Firefox Android fix (strange one):
this.canvas.width = this.canvas.width;

return true;
}

Expand All @@ -927,7 +930,4 @@ CB_Canvas.prototype._context_drawEllipse = function drawEllipse(x, y, w, h) //NO
this.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym);
//this.closePath(); // not used correctly, see comments (use to close off open path)
//this.stroke();
};

//CB_CanvasFileLoaded = true; //This file has been loaded.
//CB_filesNeeded["screen/canvas/CB_Canvas.js"] = true; //This file has been loaded.
};
4 changes: 2 additions & 2 deletions CrossBrowdy/CrossBase/input/CB_Mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var CB_Mouse = function() { return CB_Mouse; };
//if (typeof(document.body) !== "undefined" && typeof(document.body.setCapture) !== "undefined")
if (typeof(e.target) !== "undefined")
{
if (typeof(e.target.setPointerCapture) !== "undefined")
if (typeof(e.target.setPointerCapture) !== "undefined" && typeof(e.pointerId) !== "undefined" && e.pointerId !== null)
{
e.target.setPointerCapture(e.pointerId);
}
Expand Down Expand Up @@ -91,7 +91,7 @@ var CB_Mouse = function() { return CB_Mouse; };
//if (typeof(document.body) !== "undefined" && typeof(document.body.releaseCapture) !== "undefined")
if (typeof(e.target) !== "undefined")
{
if (typeof(e.target.releasePointerCapture) !== "undefined")
if (typeof(e.target.releasePointerCapture) !== "undefined" && typeof(e.pointerId) !== "undefined" && e.pointerId !== null)
{
e.target.releasePointerCapture(e.pointerId);
}
Expand Down
2 changes: 1 addition & 1 deletion CrossBrowdy/CrossBrowdy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var CB_NAME = "CrossBrowdy";
* @constant
* @type {string}
*/
var CB_VERSION = "0.99.96.35";
var CB_VERSION = "0.99.96.36";

/**
* Keeps the CrossBrowdy "this" context.
Expand Down
Binary file modified README_website/img/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,7 @@ var CB_Screen = function() { return CB_Screen; };
{
if (typeof(screen) !== "undefined")
{
if (window.screen && window.screen.orientation && typeof(window.screen.orientation.lock) === "function") { return window.screen.orientation; }
var orientationObject = screen.orientation || screen.mozOrientation
|| screen.webkitOrientation || screen.oOrientation || screen.msOrientation
|| screen.khtmlOrientation || null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,10 @@ CB_Canvas.prototype.disableAntiAliasing = function(performTranslate)
context.webkitImageSmoothingEnabled = false;
context.mozImageSmoothingEnabled = false;
context.imageSmoothingEnabled = false;


//Firefox Android fix (strange one):
this.canvas.width = this.canvas.width;

return true;
}

Expand All @@ -927,7 +930,4 @@ CB_Canvas.prototype._context_drawEllipse = function drawEllipse(x, y, w, h) //NO
this.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym);
//this.closePath(); // not used correctly, see comments (use to close off open path)
//this.stroke();
};

//CB_CanvasFileLoaded = true; //This file has been loaded.
//CB_filesNeeded["screen/canvas/CB_Canvas.js"] = true; //This file has been loaded.
};
4 changes: 2 additions & 2 deletions crossbrowdy.com/CrossBrowdy/CrossBase/input/CB_Mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var CB_Mouse = function() { return CB_Mouse; };
//if (typeof(document.body) !== "undefined" && typeof(document.body.setCapture) !== "undefined")
if (typeof(e.target) !== "undefined")
{
if (typeof(e.target.setPointerCapture) !== "undefined")
if (typeof(e.target.setPointerCapture) !== "undefined" && typeof(e.pointerId) !== "undefined" && e.pointerId !== null)
{
e.target.setPointerCapture(e.pointerId);
}
Expand Down Expand Up @@ -91,7 +91,7 @@ var CB_Mouse = function() { return CB_Mouse; };
//if (typeof(document.body) !== "undefined" && typeof(document.body.releaseCapture) !== "undefined")
if (typeof(e.target) !== "undefined")
{
if (typeof(e.target.releasePointerCapture) !== "undefined")
if (typeof(e.target.releasePointerCapture) !== "undefined" && typeof(e.pointerId) !== "undefined" && e.pointerId !== null)
{
e.target.releasePointerCapture(e.pointerId);
}
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/CrossBrowdy/CrossBrowdy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var CB_NAME = "CrossBrowdy";
* @constant
* @type {string}
*/
var CB_VERSION = "0.99.96.35";
var CB_VERSION = "0.99.96.36";

/**
* Keeps the CrossBrowdy "this" context.
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_config_download.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
define("EXAMPLES_FILENAME_PATH_ZIP", DOWNLOAD_FOLDER . EXAMPLES_FILENAME_BASE . ".zip");
define("EXAMPLES_FILENAME_PATH_ZIP_REAL", DOWNLOAD_FOLDER_REAL . EXAMPLES_FILENAME_BASE . ".zip");

define("CB_VERSION_CURRENT", "0.99.96.35");
define("CB_VERSION_CURRENT", "0.99.96.36");
define("CB_FILENAME_BASE", "CrossBrowdy_{VERSION}");
define("CB_FILENAME_PATH_ZIP", DOWNLOAD_FOLDER . CB_FILENAME_BASE . ".zip");
define("CB_FILENAME_PATH_ZIP_DIST", DOWNLOAD_FOLDER . CB_FILENAME_BASE . ".dist.zip");
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Arrays.html
Original file line number Diff line number Diff line change
Expand Up @@ -6628,7 +6628,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_AudioDetector.html
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_AudioFile.html
Original file line number Diff line number Diff line change
Expand Up @@ -7587,7 +7587,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_AudioFileCache.html
Original file line number Diff line number Diff line change
Expand Up @@ -14978,7 +14978,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_AudioFileSprites.html
Original file line number Diff line number Diff line change
Expand Up @@ -16807,7 +16807,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14672,7 +14672,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_AudioFile_API.AAPI.html
Original file line number Diff line number Diff line change
Expand Up @@ -5590,7 +5590,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_AudioFile_API.ACMP.html
Original file line number Diff line number Diff line change
Expand Up @@ -5821,7 +5821,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_AudioFile_API.SM2.html
Original file line number Diff line number Diff line change
Expand Up @@ -5590,7 +5590,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_AudioFile_API.WAAPI.html
Original file line number Diff line number Diff line change
Expand Up @@ -6163,7 +6163,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Canvas.html
Original file line number Diff line number Diff line change
Expand Up @@ -4693,7 +4693,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Client.html
Original file line number Diff line number Diff line change
Expand Up @@ -5680,7 +5680,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Collisions.html
Original file line number Diff line number Diff line change
Expand Up @@ -7075,7 +7075,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13025,7 +13025,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Controllers.html
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2539,7 +2539,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Device.AmbientLight.html
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Device.Battery.html
Original file line number Diff line number Diff line change
Expand Up @@ -3289,7 +3289,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Device.Location.html
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Device.Motion.html
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Device.Orientation.html
Original file line number Diff line number Diff line change
Expand Up @@ -2157,7 +2157,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Device.Proximity.html
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Device.Vibration.html
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Device.html
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -18678,7 +18678,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion crossbrowdy.com/_html/_doc/api/CB_Events.html
Original file line number Diff line number Diff line change
Expand Up @@ -2518,7 +2518,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a>

on Wed Jan 17th 2024
on Thu Jan 18th 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Loading

0 comments on commit 203c368

Please sign in to comment.