orientationChangeEnabled

このエントリーをはてなブックマークに追加

$.mobile.orientationChangeEnabledではorientationchangeイベントを利用するかどうかが設定できます。

デフォルトではtrueですが$.mobile.orientationChangeEnabledにtrueを設定することでorientationchangeイベントではなくjQueryのresizeイベントでデバイスの向きの判定を行います。

$(document).on("mobileinit", function(){
 $.mobile.orientationChangeEnabled = false;
});

登録日 : 2012年12月27日 最終更新日 : 2016年12月19日

同じカテゴリー(初期設定)のエントリー

検索

スポンサードリンク

バージョン

リファレンス