comparison dwt/widgets/ScrollBar.d @ 136:1a0129cab08e

Fixes #5
author Jacob Carlborg <doob@me.com>
date Sat, 30 May 2009 21:38:21 +0200
parents c74ba20de292
children
comparison
equal deleted inserted replaced
135:04928add86e6 136:1a0129cab08e
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2000, 2008 IBM Corporation and others. 2 * Copyright (c) 2000, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials 3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0 4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at 5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html 6 * http://www.eclipse.org/legal/epl-v10.html
449 break; 449 break;
450 case OS.NSScrollerKnob: 450 case OS.NSScrollerKnob:
451 event.detail = DWT.DRAG; 451 event.detail = DWT.DRAG;
452 break; 452 break;
453 default: 453 default:
454 assert(false);
455 } 454 }
456 if (target is null) { 455 if (target is null) {
457 if (event.detail !is DWT.DRAG) { 456 if (event.detail !is DWT.DRAG) {
458 setSelection(value); 457 setSelection(value);
459 } 458 }