-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swipes to non-zero SwipeItems don't get triggered #472
Comments
seems it is not as simple as work/doesn't work... I'll investigate further... maybe related to having other ScrolledComposites on the design |
Here are the Swipe classes associated with the above sample: `package bug.snippet; import org.eclipse.swt.SWT; import com.eclipsesource.tabris.widgets.swipe.SwipeContext; @SuppressWarnings("serial")
} ... and ... `package bug.snippet; import java.util.ArrayList; import com.eclipsesource.tabris.widgets.swipe.SwipeItem; @SuppressWarnings("serial")
} |
A little further investigation has revealed a couple of issues with the sample code, though there are still other issues in our more complex code that I'm trying to understand. In the sample:
|
Ok, figured out the situation to reproduce the original issue... if the SwipeItem is preloadable=false then you simply cannot swipe to any items. Swipe only changes items if preloadable=true. |
Using a Swipe in Tabris for RAP 3.6, I cannot swipe to anything other than the initial 0-indexed page. Swipe events don't get triggered and it never requests the next page.
Example code here:
`/* DEMONSTRATES TABRIS TABS - demonstrates swipe bug 2.7 - swipes to other pages never gets triggered */
package bug.snippet;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Shell;
import com.eclipsesource.tabris.widgets.swipe.Swipe;
import com.eclipsesource.tabris.widgets.swipe.SwipeContext;
import com.eclipsesource.tabris.widgets.swipe.SwipeItem;
import com.eclipsesource.tabris.widgets.swipe.SwipeListener;
public class Bugsy {
private Display display;
private Shell shell;
Composite comp;
Button butAdd;
Button butRemove;
Swipe swipe;
Label count;
MySwipeItemProvider myItemProvider;
}
`
Problem occurs on iOS.
Android seems to swipe OK in most cases.
The text was updated successfully, but these errors were encountered: