FIXED: listCOMP - Off Cell Callback

The “Off Cell Callback” feature seems to be broken in the latest stable builds.
In the latest experimental it works as aspected with the same file.

OS: Windows 10 prof 64bit

This behavior was improved in the experimental 2017.30k series.
Do you have a specific case in the 10k series you’re working with?
You could post here, or email to support@derivative.ca

Thanks,
Rob.

Hi Rob,

sorry it took me so long to answer.
I think I found the source of my problem and made a simple example.
It would be great if someone could have a look and tell me if this is expected.

Thank you!
off cell callback - example.toe (5.16 KB)

Thanks for that example.
We’re having a look

Hi, if you add endRow, endCol to the print statement, you’ll see the calls occurring whenever dragging enters a non-cell area ( row, col = -1) and completely outside the list area (row, col = None).

Does this break your current setup, or are the print statements just a bit misleading?

Cheers

Hi Rob,

thanks for taking a look.

The problem here is that there is an interruption in calling the onSelect funtion, when passing a non-cell area. So when dragging down from the cell it stops printing at all when the mouse is in a non-cell area. (Row = -1 is only printed once, even if I continue to move the mouse in the non-cell area.) When the mouse leaves the listCOMP it starts printing again. (Row = None is printed as often as I move the mouse). This interruption is a problem for me since I am trying to make a ui element in a cell, that can change its state with dragging up and down…

I hope I could make it clear…

Cheers, david

No that makes sense.
The issue is that multiple -1’s are filtered out, but not multiple Nones.

In your case though, is not the single -1 callback sufficient?
Or do you need other changing panel values, like u,v during that time?

Exactly, I am trying take make an ui element that changes its state according to the uv coordinates of the mouse, when it gets dragged (like a draggable number field).
It works nicely except, when passing a non-cell area.

That all makes sense.
Build 2017.38800 will now allow multiple offcell callbacks as the mouse drags.
Cheers

And thats one of the reasons why TD is so great.
Thank you Rob :smiley: