Skip to content

Commit 0bbeff3

Browse files
author
AleBles
committed
Fixed an issue where input wouldn't appear on Desktop Firefox and Safari
1 parent d52a976 commit 0bbeff3

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,17 @@ Browser Support
7676
Tested on:
7777
- Desktop
7878
* Chrome 48+
79+
* FireFox 44+
80+
* Safari 9+
7981
- Mobile
8082
* Chrome 48+
8183
* iOS 9+
8284

8385
Changelog
8486
---------
87+
### 0.1.3
88+
* Fixed an issue where input wouldn't appear on Desktop Firefox and Safari
89+
8590
### 0.1.2
8691
* Fixed a small issue when no placeHolder was set
8792

build/phaser-input.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/phaser-input.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/phaser-input.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "phaser-input",
33
"author": "OrangeGames",
4-
"version": "0.1.2",
4+
"version": "0.1.3",
55
"description": "Adds input boxes to Phaser like CanvasInput, but also works for WebGL and Mobile, made for Phaser only.",
66
"contributors": [
77
{
@@ -24,10 +24,10 @@
2424
"grunt-banner": "^0.6.0",
2525
"grunt-contrib-clean": "0.6.0",
2626
"grunt-contrib-connect": "^0.11.2",
27-
"grunt-contrib-uglify": "0.7.0",
27+
"grunt-contrib-uglify": "^0.11.0",
2828
"grunt-contrib-watch": "^0.6.1",
2929
"grunt-typescript": "0.8.0",
30-
"phaser": "2.4.4",
30+
"phaser": "2.4.6",
3131
"typescript": "1.6.x"
3232
},
3333
"engines": {

ts/InputField.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ module Fabrique {
230230

231231
private startFocus() {
232232
var input = document.getElementById(this.id);
233-
if (this.game.device.chrome === true) {
233+
if (this.game.device.desktop) {
234234
//Timeout is a chrome hack
235235
setTimeout(() => {
236236
input.focus();

0 commit comments

Comments
 (0)