Skip to content
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

OPENMEETINGS-2339 Fix issue around icons hidden behind drag for video pod #86

Conversation

sebawagner
Copy link
Member

This fix moves the icons on top of the drag element.
By doing this you can drag it on mobile touch and yo ucan still click the icons.

This fixes the issue that on mobile/touch devices you can't click on the icons as the DIV with the ui-titlebar is on top.

This is similar to the fix as suggest by @solomax in the Jira.

@sebawagner sebawagner requested a review from solomax May 16, 2020 06:27
@@ -287,7 +287,7 @@ var Video = (function() {
});
}
v.parent().find('.ui-dialog-titlebar-close').remove();
v.parent().find('.ui-dialog-titlebar').append(OmUtil.tmpl('#video-button-bar'));
v.parent().append(OmUtil.tmpl('#video-button-bar'));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move icons one level on top of the ui-dialog-titlebar. ui-dialog-titlebar is the element jquery-ui makes dragable.
Like this it looks exactly the same but doesn't have the issue, so that on Mobile you can still click the icons AND drag the dialog.

@sebawagner sebawagner merged commit f4809e5 into master May 16, 2020
@sebawagner sebawagner deleted the feature/OPENMEETINGS-2339-cannot-click-close-icon-on-touch-surface-for-jquery-ui-draggable-window branch May 16, 2020 20:01
@solomax
Copy link
Contributor

solomax commented May 18, 2020

Hello @sebawagner,

this is how video pod looks for me now:
Screenshot from 2020-05-18 21-11-18

I would say it should be fixed ....
Ubuntu 20, Chrome latest

{
background-color: var(--white);
}
.user-video .ui-dialog-titlebar .buttonpane {
.user-video .buttonpane {
background-color: var(--white);
position: absolute;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sebawagner unfortunately this will NOT work :(
dialog has position: absolute so positioning of this buttonpane is not honored

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed that before, let me have a look. It worked in chrome.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It did work for me on Chrome.
I think there is some CSS missing that I did accidentally not commit. I think some top: 20px somewhere is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants