Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4504,9 +4504,7 @@

<enum name="NSScrollElasticityNone" swt_gen="true"></enum>
<enum name="NSScrollWheel" swt_gen="true"></enum>
<enum name="NSScrollerDecrementLine" swt_gen="true"></enum>
<enum name="NSScrollerDecrementPage" swt_gen="true"></enum>
<enum name="NSScrollerIncrementLine" swt_gen="true"></enum>
<enum name="NSScrollerIncrementPage" swt_gen="true"></enum>
<enum name="NSScrollerKnob" swt_gen="true"></enum>
<enum name="NSScrollerKnobSlot" swt_gen="true"></enum>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2293,9 +2293,7 @@ public static Selector getSelector (long value) {
public static final int NSImageScaleNone = 2;
public static final int NSScrollElasticityNone = 1;
public static final int NSScrollWheel = 22;
public static final int NSScrollerDecrementLine = 4;
public static final int NSScrollerDecrementPage = 1;
public static final int NSScrollerIncrementLine = 5;
public static final int NSScrollerIncrementPage = 3;
public static final int NSScrollerKnob = 2;
public static final int NSScrollerKnobSlot = 6;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -481,18 +481,10 @@ void sendSelection () {
int hitPart = (int)((NSScroller)view).testPart(point);
Event event = new Event();
switch (hitPart) {
case OS.NSScrollerDecrementLine:
value -= increment;
event.detail = SWT.ARROW_UP;
break;
case OS.NSScrollerDecrementPage:
value -= pageIncrement;
event.detail = SWT.PAGE_UP;
break;
case OS.NSScrollerIncrementLine:
value += increment;
event.detail = SWT.ARROW_DOWN;
break;
case OS.NSScrollerIncrementPage:
value += pageIncrement;
event.detail = SWT.PAGE_DOWN;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,18 +333,10 @@ void sendSelection () {
int hitPart = (int)((NSScroller)view).hitPart();
int value = getSelection ();
switch (hitPart) {
case OS.NSScrollerDecrementLine:
event.detail = SWT.ARROW_UP;
value -= increment;
break;
case OS.NSScrollerDecrementPage:
value -= pageIncrement;
event.detail = SWT.PAGE_UP;
break;
case OS.NSScrollerIncrementLine:
value += increment;
event.detail = SWT.ARROW_DOWN;
break;
case OS.NSScrollerIncrementPage:
value += pageIncrement;
event.detail = SWT.PAGE_DOWN;
Expand Down
Loading