Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

Drag on mat-slider breaks when installing the carousel #43

Open
timhc22 opened this issue Jan 15, 2020 · 3 comments
Open

Drag on mat-slider breaks when installing the carousel #43

timhc22 opened this issue Jan 15, 2020 · 3 comments
Assignees
Labels
bug Something isn't working needs investigation This issue needs further investigation

Comments

@timhc22
Copy link

timhc22 commented Jan 15, 2020

After installing the module and adding to the includes section in the module file, (before importing into any components), the 'drag' function on the Material slider itself seems to stop working (can click to move the slider, but can no longer drag it). Maybe there is some clash of the classes?

@timhc22
Copy link
Author

timhc22 commented Jan 15, 2020

Oh, we changed this:

//...
import { MatCarouselModule } from '@ngmodule/material-carousel';

@NgModule({
  // ...
  imports: [
    // ...
    MatCarouselModule.forRoot(),
    // ...
  ]
})
export class AppModule {}

to this:

//...
import { MatCarouselModule } from '@ngmodule/material-carousel';

@NgModule({
  // ...
  imports: [
    // ...
    MatCarouselModule,
    // ...
  ]
})
export class AppModule {}

And it works now.

@gbrlsnchs gbrlsnchs self-assigned this Jan 15, 2020
@gbrlsnchs gbrlsnchs added bug Something isn't working needs investigation This issue needs further investigation labels Jan 15, 2020
@gbrlsnchs gbrlsnchs added this to the Launch stable version milestone Jan 15, 2020
@Jay-PC
Copy link

Jay-PC commented Feb 18, 2020

We also installed using npm and followed all directions. Our swipe is not working either. We removed the ".forRoot()," as in the above suggestion and it had no affect. Perhaps they changed something else as well? To test this theory, if you have a working project, try putting the ".forRoot()" back in and see if the swipe still works? We have checked all the other usual suspects like our hammerjs is the same version as yours, etc. Can you help us, please? Thanks =Jay

@IAMtheIAM
Copy link

Drag and slide is not working for me either... not sure what the problem is. Hammerjs is imported into main.ts

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working needs investigation This issue needs further investigation
Projects
None yet
Development

No branches or pull requests

4 participants