@@ -158,7 +158,7 @@ Item {
158 gapToEndPhase,
158 gapToEndPhase,
159 carousel.drawBuffer)
159 carousel.drawBuffer)
161− if (Math.abs(x - contentX) < 1) {
161+ if (Math.abs(x - contentX) < 1 && delegateItem !== undefined) {
162 /* We're clicking the selected item and
162 /* We're clicking the selected item and
163 we're in the neighbourhood of radius 1 pixel from it.
163 we're in the neighbourhood of radius 1 pixel from it.
164 Let's emit the clicked signal. */
164 Let's emit the clicked signal. */
@@ -182,7 +182,7 @@ Item {
182 gapToEndPhase,
182 gapToEndPhase,
183 carousel.drawBuffer);
183 carousel.drawBuffer);
185− if (Math.abs(x - contentX) < 1) {
185+ if (Math.abs(x - contentX) < 1 && delegateItem !== undefined) {
186 /* We're pressAndHold the selected item and
186 /* We're pressAndHold the selected item and
187 we're in the neighbourhood of radius 1 pixel from it.
187 we're in the neighbourhood of radius 1 pixel from it.
188 Let's emit the pressAndHold signal. */
188 Let's emit the pressAndHold signal. */