Bug 478666 - about:config should support three finger swipe up/down on Mac OS X. r=enndeakin

This commit is contained in:
Edward Lee 2009-02-20 17:16:04 -06:00
parent 8c3cfeb290
commit c91d74ac56

View File

@ -672,6 +672,22 @@
this.treeBoxObject.scrollByLines(rows);
]]>
</handler>
<handler event="MozSwipeGesture">
<![CDATA[
// Figure out which row to show
let targetRow = 0;
// Only handle swipe gestures up and down
switch (event.direction) {
case event.DIRECTION_DOWN:
targetRow = this.view.rowCount - 1;
// Fall through for actual action
case event.DIRECTION_UP:
this.treeBoxObject.ensureRowIsVisible(targetRow);
break;
}
]]>
</handler>
<handler event="select" phase="target"
action="if (event.originalTarget == this) this.stopEditing(true);"/>
<handler event="focus">