[JS]ドロップ、ドラッグ、ホイール操作などマウスイベントを強化するスクリプト
Post on:2008年10月9日
Three Dub Mediaから、ドロップ、ドラッグ、マウスオーバー、ホイール操作などマウスイベントを強化するスクリプトを紹介します。
スクリプトはすべてjQueryのプラグインのため、動作にはjquery.js 1.2.6+ が必要です。

$.event.special.drop
ドロップのスタート・操作中・終了のイベントを取得します。ターゲットの判定にはマウスが触れた時・対象物が触れた時・収まった時などを取得します。
要:jquery.event.drag

$.event.special.drag
ドラッグのスタート・操作中・終了のイベントを取得し、イベントの座標軸なども取得します。

$.event.special.hover
ホバーのスタート・操作中・終了のイベントを取得し、ホバーのタイミングやスピードをコントロールできます。

$.event.special.wheel
ホイールのイベントを取得し、イベントを割り当てることができます。
sponsors