Hi Brent,
Thanks for the link, very helpful.
So i’m trying to use one of your suggestions and I can’t seem to get it to work.
I have created a pickerWheel and then created a simple rectangle display object the same size and positioned it over top of the pickerwheel. I gave the rectangle a “Touch” listener with a simple print command in the “ended” phase for testing. I also added isHitTestable = true and I have NOT added return true.
The problem is that while the touch event goes right through the rectangle to the picker widget below, allowing the user to mive the wheel (yay!) it does not register the touch event for the rectangle itself (boo…), it’s as if the rectangle doesn’t exist. If I add the return true, it only registers the rectangle touch event (As it’s supposed to).
Now if I change the listener type to Tap instead, it works perfectly. But that isn’t helpful since a user is going to move his/her finger up and down to move the picker widget, therefor not registering as a “tap”.
local function wheelTouch(event) local phase = event.phase if phase == "ended" then print("touched") end end local columnData = { { startIndex = 3, labels = { "#0 - 0.06", "#1 - 0.073", "#2 - 0.086", "#3 - 0.099", "#4 - 0.112", "#5 - 0.125", "#6 - 0.138", "#8 - 0.164", "#10 - 0.19", "#12 - 0.215" } } } diaWheel = widget.newPickerWheel { columns = columnData, } diaWheel.anchorX = 0 diaWheel.anchorY = 0.5 diaWheel.x = -50 diaWheel.y = display.contentCenterY local touchBox = display.newRect( 0, 0, diaWheel.contentWidth, diaWheel.contentHeight ) touchBox.anchorY = 0.5 touchBox.anchorX = 0 touchBox.x = diaWheel.x touchBox.y = diaWheel.y touchBox.isHitTestable = true touchBox:addEventListener( "touch", wheelTouch ) touchBox.alpha = 0 screenGroup:insert( 1, diaWheel ) screenGroup:insert( 2, touchBox )