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

Remove hammerjs dependency? #218

Closed
HarelM opened this issue Jan 18, 2021 · 5 comments
Closed

Remove hammerjs dependency? #218

HarelM opened this issue Jan 18, 2021 · 5 comments

Comments

@HarelM
Copy link

HarelM commented Jan 18, 2021

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[x] Feature request
[ ] Documentation issue or request
[ ] Support request

Current behavior

Documentation says that I need to install hammerjs

Expected behavior

Recent versions of material removed the dependency of hammerjs and also it seems that the current gallery I'm using managed to do it too: angular-gallery So I was wondering if this is also the direction here.

What is the motivation / use case for changing the behavior?

Reduce dependencies

Other comments

I'm not using this library but I want to migrate out of a library that has stopped being maintained.
I'm considering my options.
What I basically need is the ability to open a set of images and allow the user to change them (enlarge them).
The behavior can be seen here:
https://israelhiking.osm.org.il/poi/OSM/node_2209019954?language=he
By clicking the image the gallery opens and shows the images.
What is currently missing:

  1. The ability to pitch-zoom the image to enlarge it even further
  2. On mobile devices the image is not taking the entire space which creates a small image - which is counter prodcutive

As a side note, the documentation page is returning a 404 right now.

I would love to help out and test/contribute/whatever you need. This is a nice feature which I would like to keep up-to-date and I'm really impressed by the rate of your releases.

@Ks89
Copy link
Owner

Ks89 commented Jan 18, 2021

Hi thank you for your interest in this project.
Yes, I know that it's possible to remove it, however I didn't try to do it.

I'm trying to release v8.0.0 as stable version, but I still need to write a test and the new doc website.
This is the highest priority right now. So I won't add any new feature until version 8.0.0 will be ready for the release as stable version. I don't have enough spare time to predict any release date.

Next, I can try to schedule requests and so on.

1. The ability to pitch-zoom the image to enlarge it even further

I don't remember If I made experiments about this, however I don't consider this something with high priority.

2. On mobile devices the image is not taking the entire space which creates a small image - which is counter prodcutive

This is challenging because it may require many changes to layout and CSS. So I don't expect to implement it, in particular because some users are still using the library on IE11. Probably, the only way to do it smoothly is to remove IE11 compatibility and redesign modal view in a smarter way, without considering obsolete browsers. This is probably the right direction to clean up CSS/HTML and speed up development of UI changes.

Any contribution is welcome, however, as I sad, at the moment I want to complete v8.0.0 so If you want to help me to update doc website (here https://github.com/Ks89/angular-modal-gallery-2020-v8.github.io) or add the missing spec file of modal-gallery component (https://github.com/Ks89/angular-modal-gallery/blob/develop/projects/ks89/angular-modal-gallery/src/lib/components/modal-gallery/modal-gallery.component.ts), we can speed up development.

@Ks89 Ks89 added this to the next milestone Jan 18, 2021
@Ks89
Copy link
Owner

Ks89 commented Jan 18, 2021

About point 1, I found this older issue #158.
There was a problem with hammerjs and I also opened an issue directly in the hammerjs repo, but no one answered in about 2 years.

Hammer support is very bad. There are tons of older issues without answers.

@HarelM
Copy link
Author

HarelM commented Jan 18, 2021

Thanks to the info.
Note that I think angular 11 dropped support for ie 11 so I think it's a no brainer...
Also other libraries version are marching the version of angular they support, you might want to consider this as well - I.e release version 8 but call it 11 to let developers know which version they should use with each angular version.
This way you can also say that you can use version 6 or whatever with ie but the latest version doesn't support it.
In any case I'll have a look in the code and see if I can help out...

@Ks89 Ks89 modified the milestones: next, 10.0.0 Jul 10, 2021
Ks89 added a commit that referenced this issue Mar 19, 2023
…age swipe events #218

Signed-off-by: Stefano Cappa <stefano.cappa.ks89@gmail.com>
@Ks89
Copy link
Owner

Ks89 commented Mar 19, 2023

Finally I'm working on this and I implemented a custom directive inspired by https://stackblitz.com/edit/angular-swipe-events-with-hostlistner?file=src%2Fapp%2Fapp.component.ts.
Still not released, but pushed on develop branch.

@HarelM
Copy link
Author

HarelM commented Mar 19, 2023

Thanks for the info, I ended up moving to photoswipe to achieve pintch-zoom and swipe left-right to change images on mobile.
Good luck with this library!!

@Ks89 Ks89 closed this as completed Mar 29, 2023
Ks89 added a commit that referenced this issue Jul 8, 2023
…age swipe events #218

Signed-off-by: Stefano Cappa <stefano.cappa.ks89@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants