I am pansexual but people tell me I'm not because I have a boyfriend. Is that right?

I just need some opinions