PDA

View Full Version : [PENDING] Setting Carousel isDraggable to false does not work. Possible fix inside.



naderc
17 Aug 2011, 6:15 AM
Sencha Touch version tested:

1.1
Platform tested against:

Chrome
Description:

When setting isDraggable to false in Ext.Carousel, the Carousel is still draggable.
Possible fix:

In 'afterRender' function in Ext.Carousel, replace the following:

this.mon(this.body, {
drag: this.onDrag,
dragThreshold: 5,
dragend: this.onDragEnd,
direction: this.direction,
scope: this
});


with the following:

if (this.isDraggable)
{
this.mon(this.body, {
drag: this.onDrag,
dragThreshold: 5,
dragend: this.onDragEnd,
direction: this.direction,
scope: this
});
}