jquery.mobile.scrollview.js を編集する代わりに、ブラウザーが IE かどうかを最初に確認して、オブジェクトの作成時にオプションを設定できます。
if($.browser.msie){
opts.scrollMethod = "scroll";
}
これをページ作成機能で使用します
var $page = $( this );
// For the demos that use this script, we want the content area of each
// page to be scrollable in the 'y' direction.
//$page.find( ".ui-content" ).attr( "data-" + $.mobile.ns + "scroll", "y" );
// This code that looks for [data-scroll] will eventually be folded
// into the jqm page processing code when scrollview support is "official"
// instead of "experimental".
$page.find( ":jqmData(scroll):not(.ui-scrollview-clip)" ).each(function () {
var $this = $( this );
// XXX: Remove this check for ui-scrolllistview once we've
// integrated list divider support into the main scrollview class.
if ( $this.hasClass( "ui-scrolllistview" ) ) {
$this.scrolllistview();
scrollViewObj = $this;
} else {
var st = $this.jqmData( "scroll" ) + "",
paging = st && st.search(/^[xy]p$/) != -1,
dir = st && st.search(/^[xy]/) != -1 ? st.charAt(0) : null,
opts = {
direction: dir || undefined,
paging: paging || undefined,
scrollMethod: $this.jqmData("scroll-method") || undefined
};
if($.browser.msie){
opts.scrollMethod = "scroll";
}
$this.scrollview( opts );
scrollViewObj = $this;
}
});