LoginSignup
1
1

More than 5 years have passed since last update.

GALAXY S4のWebViewでcanvasのdrawImageがおかしい

Last updated at Posted at 2013-06-25
ctx = canvas.getContext '2d'
img = new Image()
img.src = 'hoge.png'
img.onload = ->
    ctx.drawImage img, 0, 0, 100, 100

とした時に、原点から1x1pxのドットが全画面に表示される。

発生条件は不明で、最小構成の場合起きないこともある。

起きるのは初回アクセス時のみで、2回目以降は発生しない。
ただし、setTimeoutなどで遅延描画させた場合、2回目以降も発生する。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1