チケット #98 (closed enhancement: fixed)

登録: 3 年 前

最終更新: 2 ヶ月 前

SWFWheel vs browser scrollbars

報告者: pheno7 担当者: nobu
優先度: major マイルストーン:
コンポーネント: SWFWheel キーワード:
関係者:

チケットの概要

Hi!

It would be nice if the mousewheel event that scrolls the -browser- window would still works when scrollwheeling over the flash, but only as an optional behavior on specific flash objects/movieclips (ie: a background).

The browser scrollbars does not work anymore when over the fixed flash, it can be anoying on html/flash sites or fullscreen flash sites that have a minimum size that brings the browser scrollbars.

Thanks to help bring this ticket in japanese if you can translate.

添付ファイル

チケットの履歴

2009/05/07 13:04:15 更新者:yossy

Hi pheno7,

Thank you for your report! I translated it into Japanese for better discussion :)


こんにちは!

ブラウザのウィンドウをスクロールさせるマウスホイールイベントが Flash の上でホイールさせたときでも動けばすばらしいと思います。しかし、それは特定の Flash 上のオブジェクトやムービークリップ (例えば背景) の上でのみのオプショナルな動作であるべきです。

固定された Flash の上にあるとき、ブラウザのスクロールバーはそれ以上動きません。これは、ブラウザのスクロールバーを出現させるような最小サイズを持つ HTML/FLASH サイトやフルスクリーン FLASH サイトで煩わしい存在となりうるでしょう。

2009/05/07 23:53:18 更新者:nobu

  • ステータスnew から assigned に更新されました。

こんにちは!!

貴重な意見をありがとうございます :-) 指摘のあった部分に関して、僕自身も以前からどうすべきか考えていたポイントでした。 可能であれば、 Flash を動かす場合とブラウザを動かす場合とを、 細かく制御出来るとベストだと思うのですが、色々試した結果どうにもそれは無理なようでした。

で、ここで提案なのですが、 SWFWheel#initialize の引数に何かフラグを追加して、 ブラウザのスクロールをキャンセルするかどうか?を指定する。ってのはどうでしょう?

//  今まで通りだとブラウザのスクロールをキャンセル。
SWFWheel.initialize(stage);

//  第2引数を true でブラウザのスクロールをキャンセル。上と同じ。
SWFWheel.initialize(stage, true);

//  第2引数を false にするとブラウザもスクロール
SWFWheel.initialize(stage, false);

結構適当に書いちゃってますが、他にも良いアイディアがあればどんどこ教えてくださいね :-)

よーし、どなたか英訳たのんまーす!

2009/05/08 00:35:26 更新者:yossy

I tried to translate nobu's post... Please fix if you have the better translation.


Hi!

Thank you for precious feedback :-) This is a bother to me. I think it is the best if we can control minutely that which Flash or the browser should be scrolled, but I can't do it.

Then, this is my idea: How about setting whether canceling the browser scrolling by an argument of SWFWheel#initialize?

// By default, cancels the browser scrolling
SWFWheel.initialize(stage);

// If passing true to the 2nd parameter, cancels the browser scrolling (Same as the top)
SWFWheel.initialize(stage, true);

// If passing false to the 2nd parameter, doesn't cancel the browser scrolling (it will be worked)
SWFWheel.initialize(stage, false);

If you have any other idea, please tell me :-)

2010/07/02 00:31:18 更新者:nobu

  • ステータスassigned から closed に更新されました。
  • 解決方法fixed に更新されました。

はいどーも。遅くなりまして。

英訳分かんないんで日本語で書きます。だれかトランスレートプリーズ!

SWFWheel のスタティックなプロパティに browserScroll を追加しました。 デフォルトでは true になっており、 swf コンテンツもブラウザもホイールイベントを受け取ります。 で、 browserScroll を false にする事で、今までと同じようにブラウザのスクロールを止める事が出来ます。 なので、普段は true にしておいて、スクロールするコンテンツ上に来た時に false に切り替えるようにすると、 かなり良い感じに制御出来るのではないかと思います!

まだタグ打ちしてないので、急がれる方は svn の trunk に入ってるバージョンをお試しあれー :-)

2011/09/03 15:45:55 更新者:MCSDCmT

adGQkku

2011/11/26 23:15:01 更新者:SamoaeQ04

Hi! I partake of been maddening to compile this, but all i got is 3 errors everytime when i adjudicate it. Could someone support me with theese? http://hdtvsbestdeals.com/isymphony-lc42if56-42-inch-1080p-lcd-hdtv-black/ http://hdtvsbestdeals.com/vizio-vf550m-55-inch-full-hd-1080p-120-hz-lcd-hdtv/


追記/更新 #98 (SWFWheel vs browser scrollbars)




操作