Topic: Editing Events on Touchscreens

Hi,

doing a tap on touchscreen on an Event only shows the hover text - but not the event window. So there is no chance to edit an event on mobile device...
Or am I doing something wrong???

Re: Editing Events on Touchscreens

Where do you tab?
You have to tab the event-title.

Which version are you using?

Re: Editing Events on Touchscreens

Of course I am touching the event title ...
I am using 4.7.2 but I have to admit, that there is a lot of changes, that I made to the code in order to fit our needs. So it is possible, that there is something going wrong ...

I just tried out the demo page on the LuxCal homepage and there it works on mobile. Which version is running there?

In dw_functions.php I found this in "showEvents" function:

      if (!$isMob) {
        $click = ($evt['mayE'] ? 'editE' : 'showE')."({$evt['eid']},'{$date}')";
        $onClick = ($eDetails or $evt['mayE']) ? "<span class='point' onclick=\"{$click};\"" : "<span class='arrow'";
        echo "<div class='{$class}'>{$chBox}{$onClick}{$popAttr}>{$stiPrefix}{$evt['tix']}</span></div></div>\n";
      } else {
        echo "<div class='{$class}'>{$chBox}".(($eDetails or $evt['mayE']) ? "<span class='point' " : "<span class='arrow'")."{$popAttr}>{$stiPrefix}{$evt['tix']}</span></div></div>\n";

For me this seems, that there is no click function on event-title on mobile. So mobiles show the hover text ... - am I wrong?

Re: Editing Events on Touchscreens

Yes - you are wrong.

It should function on mobiles.
The demo is 4.7.2.L

I guess it is the changes you have made.

You could download the latest version and test this - just to see that it functions on mobiles. ( it does - I have tested ).

Then you could apply your changes one-by-one, and see where it goes wrong - if it does.

When you have pinpointed where it goes wrong, then maybe Roel can help you, to get "correct" code.
Just a suggestion

Re: Editing Events on Touchscreens

Okay,
thanks a lot for testing!
So I will have to find the mistake in my own code wink

Greetings

  Stefan

Re: Editing Events on Touchscreens

Sorry - but I have to come back to this Topic.

Could you please test, if the tap/touch works both on month and week view!?

On my android only month view is showing event window after tap on event-title.
Week view only shows hover text...

Re: Editing Events on Touchscreens

Hello gentlemen,

Stefan is not completely wrong wink
In week and day view indeed on a SMALL SCREEN mobile device it is not possible to open the event edit window by tapping the event title. I can't remember why we made it like this . . . I will sleep on it and maybe find out.
So the PHP code in Stefan's last post is the original LuxCal code.
In month view however, it should be possible to open the event edit window by tapping the event title. If this doesn't work in your calendar, send me the month.php file with your changed code and I will then try to find the problem.

Roel

Re: Editing Events on Touchscreens

Good morning Roel,

month view is working correct for me.
With our settings we almost only work in week view, so I never noticed the "problem" has to do with different views.
Perhaps there hat been good reasons for coding it that way ...  -  would like to know when your memorie ist back wink

Thanks a lot!!!

Stefan

Re: Editing Events on Touchscreens

Hi Stefan,

I can't remember any reason for not being able to open the event edit window when clicking the event title in week view. So I will remove this restriction in the next calendar version.
You know how to change the code I assume.

Cheers,
Roel

Re: Editing Events on Touchscreens

Hello Roel,

yes I know wink

Thanks a lot!