Jump to content
uniGUI Discussion Forums
andyhill

UnimImage - How does one implement Double Tap ?

Recommended Posts

Can some one please show me how to implement Double Tap for a UnimImage - thanks.

Share this post


Link to post
Share on other sites

Hi,

 

Try this:

 

1. UnimImage -> ClientEvents -> UniEvents -> function afterCreate:

function afterCreate(sender)
{
    var me = sender;
    me.element.on("doubletap",
        function() {
            ajaxRequest(me, "_doubletap", []);
        }
    );
}

2.

procedure TMainmForm.UnimImage1AjaxEvent(Sender: TComponent; EventName: string;
  Params: TUniStrings);
begin
  if EventName = '_doubletap' then
    ShowMessage('dtap');

end;

Share this post


Link to post
Share on other sites

Thanks Farshad, but "dtap" by default on iPhone zooms in / zooms out ? Can I override this ?

Share this post


Link to post
Share on other sites

×